diff --git a/frontend/src/pages/index/CustomGeoFormModal.vue b/frontend/src/pages/index/CustomGeoFormModal.vue new file mode 100644 index 00000000..ee85c7fa --- /dev/null +++ b/frontend/src/pages/index/CustomGeoFormModal.vue @@ -0,0 +1,112 @@ + + + + + + + + geosite + geoip + + + + + + + + + + + diff --git a/frontend/src/pages/index/CustomGeoSection.vue b/frontend/src/pages/index/CustomGeoSection.vue new file mode 100644 index 00000000..c5351071 --- /dev/null +++ b/frontend/src/pages/index/CustomGeoSection.vue @@ -0,0 +1,309 @@ + + + + + + + + + + Add + + + + Update all + + {{ list.length }} + + + + + + + + {{ record.type }} + + {{ record.alias }} + + + + + + + {{ record.url }} + + + + + + + + {{ extDisplay(record) }} + + + + + + + {{ relativeTime(record.lastUpdatedAt) }} + + — + + + + + + + + + + + + + + + + + + + + + + + + + + + No custom geo entries yet + + + + + + + + + diff --git a/frontend/src/pages/index/VersionModal.vue b/frontend/src/pages/index/VersionModal.vue index 30d044ae..c9c6fbac 100644 --- a/frontend/src/pages/index/VersionModal.vue +++ b/frontend/src/pages/index/VersionModal.vue @@ -3,6 +3,7 @@ import { ref, watch } from 'vue'; import { Modal } from 'ant-design-vue'; import { ReloadOutlined } from '@ant-design/icons-vue'; import { HttpUtil } from '@/utils'; +import CustomGeoSection from './CustomGeoSection.vue'; const props = defineProps({ open: { type: Boolean, default: false }, @@ -113,6 +114,10 @@ watch(() => props.open, (next) => { if (next) fetchVersions(); }); Update all + + + +
+ {{ extDisplay(record) }} +