feat: 支持编辑线路图署名并固定 CC BY 4.0
This commit is contained in:
+19
-2
@@ -820,8 +820,22 @@
|
||||
<div>建议上传横向长图,便于首页和购票页展示。</div>
|
||||
<div>再次上传会自动替换旧文件。</div>
|
||||
</div>
|
||||
<div style="margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px;">
|
||||
<label style="display: grid; gap: 6px;">
|
||||
<span style="font-weight: 700;">线路图署名</span>
|
||||
<input v-model="assetsForm.routeMapCredit" class="input" type="text" maxlength="200" placeholder="例如:OpenStreetMap contributors / 作者名 / 来源名">
|
||||
</label>
|
||||
<div class="text-muted">许可协议固定为 <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">CC BY 4.0</a></div>
|
||||
<div class="flex" style="gap: 8px; flex-wrap: wrap;">
|
||||
<button class="btn" @click="saveRouteMapCredit" :disabled="mutationBusy">
|
||||
<i class="fas fa-pen"></i> 保存署名
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px;">
|
||||
<div><strong>当前文件:</strong> {{ assetsManifest.routeMap || '未上传' }}</div>
|
||||
<div><strong>当前署名:</strong> {{ assetsManifest.routeMapCredit || '未填写' }}</div>
|
||||
<div><strong>许可协议:</strong> <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">{{ assetsManifest.routeMapLicense }}</a></div>
|
||||
<div><strong>更新时间:</strong> {{ assetsManifest.updatedAt ? formatTime(assetsManifest.updatedAt) : '暂无' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -830,7 +844,11 @@
|
||||
<div style="width: 100%;">
|
||||
<template v-if="assetsRouteMapUrl">
|
||||
<img :src="assetsRouteMapUrl" alt="线路图预览" style="display: block; max-width: 100%; height: auto; background: #ffffff; margin: 0 auto;">
|
||||
<div class="jr-asset-credit" style="color: #cbd5e1;">线路图署名:CC-BY 4.0</div>
|
||||
<div class="jr-asset-credit" style="color: #cbd5e1;">
|
||||
<span>线路图署名:{{ assetsManifest.routeMapCredit || '未填写' }}</span>
|
||||
<span>许可协议:</span>
|
||||
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer" style="color: #93c5fd;">{{ assetsManifest.routeMapLicense }}</a>
|
||||
</div>
|
||||
</template>
|
||||
<div v-else class="text-muted" style="padding: 24px; text-align: center;">
|
||||
暂无线路图,请先上传一张线路图。
|
||||
@@ -966,4 +984,3 @@
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user