refactor: update icon system, fix login and add temp auth
refactor all icon map references from zniconsMap to iconsMap across the codebase standardize icon import paths and add complete src/assets/fonts/znicons.ts definition file fix login page query selector typo and replace hardcoded client ID with environment variable add temporary auth token injection in request utility using env var update ZnIcon documentation and development environment config
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
<div v-else class="w-full h-full flex flex-items-center flex-justify-center" @click="handleChooseImage">
|
||||
<uni-icons fontFamily="znicons" size="24" color="#6A717F">
|
||||
{{ zniconsMap["zn-camera"] }}
|
||||
{{ iconsMap["zn-camera"] }}
|
||||
</uni-icons>
|
||||
</div>
|
||||
</div>
|
||||
@@ -74,7 +74,7 @@ import { ref, computed, onMounted, nextTick, defineProps, watch } from "vue";
|
||||
import { SCROLL_TO_BOTTOM } from "@/constants/constant";
|
||||
import { createWorkOrder } from "@/api/workOrder";
|
||||
import { uploadFile } from "@/api/upload";
|
||||
import { zniconsMap } from "@/assets/fonts/znicons";
|
||||
import { iconsMap } from "@/assets/fonts/znicons";
|
||||
|
||||
const props = defineProps({
|
||||
toolCall: {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
}">
|
||||
<div class="flex flex-items-center flex-row flex-shrink-0 mr-8">
|
||||
<van-icon fontFamily="znicons" size="20" color="#333">
|
||||
{{ zniconsMap[moduleItem.moduleIcon] }}
|
||||
{{ iconsMap[moduleItem.moduleIcon] }}
|
||||
</van-icon>
|
||||
<span class="ml-4 font-size-14 color-171717 line-height-20">
|
||||
{{ moduleItem.moduleTitle }}
|
||||
@@ -33,7 +33,7 @@
|
||||
import { defineProps } from "vue";
|
||||
import Vue3MarkdownIt from 'vue3-markdown-it';
|
||||
import ModuleTitle from "@/components/ModuleTitle/index.vue";
|
||||
import { zniconsMap } from "@/assets/fonts/znicons";
|
||||
import { iconsMap } from "@/assets/fonts/znicons";
|
||||
|
||||
// Props定义
|
||||
const props = defineProps({
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="border-box rounded-12 bg-white p-12 ml-12 mr-12 mb-40">
|
||||
<div class="flex flex-items-center mb-8">
|
||||
<uni-icons fontFamily="znicons" size="20" color="#333">
|
||||
{{ zniconsMap["zn-refund"] }}
|
||||
{{ iconsMap["zn-refund"] }}
|
||||
</uni-icons>
|
||||
<span class="font-size-14 font-600 color-171717 ml-8">
|
||||
{{ refundTitle }}
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, watch } from "vue";
|
||||
import { zniconsMap } from "@/static/fonts/znicons";
|
||||
import { iconsMap } from "@/static/fonts/znicons";
|
||||
|
||||
// Props定义
|
||||
const props = defineProps({
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import { zniconsMap } from "@/assets/fonts/znicons.js";
|
||||
import { iconsMap } from "@/assets/fonts/znicons";
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -22,7 +22,7 @@ const props = withDefaults(
|
||||
);
|
||||
|
||||
const glyph = computed(() => {
|
||||
const value = (zniconsMap as Record<string, string>)[props.name];
|
||||
const value = (iconsMap as Record<string, string>)[props.name];
|
||||
return value ?? "";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user