parent
bd9013acff
commit
1113443b31
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ApifoxUploaderProjectSetting">
|
||||
<option name="apiAccessToken" value="APS-Kc3YrVfGlTrgg0vw2qCGNG29jJ62vPRz" />
|
||||
</component>
|
||||
</project>
|
@ -1,11 +1,11 @@
|
||||
import{d as b}from"./pinia-0.0.0-dataease.js";import{a as v,g as L}from"./index-0.0.0-dataease.js";import{l as E,d as B}from"./font-0.0.0-dataease.js";import{z as a,A as P,B as f}from"./index-0.0.0-dataease2.js";import{_ as p,c as n}from"./less-0.0.0-dataease.js";import"./vue-demi-0.0.0-dataease.js";import"./@vue-0.0.0-dataease.js";import"./mitt-0.0.0-dataease.js";import"./vue-types-0.0.0-dataease.js";import"./is-plain-object-0.0.0-dataease.js";import"./jspdf-0.0.0-dataease.js";import"./@babel-0.0.0-dataease.js";import"./@amap-0.0.0-dataease.js";import"./fflate-0.0.0-dataease.js";import"./vue-i18n-0.0.0-dataease.js";import"./@intlify-0.0.0-dataease.js";import"./web-storage-cache-0.0.0-dataease.js";import"./element-plus-secondary-0.0.0-dataease.js";import"./@vueuse-0.0.0-dataease.js";import"./@element-plus-0.0.0-dataease.js";import"./lodash-es-0.0.0-dataease.js";import"./dayjs-0.0.0-dataease.js";import"./async-validator-0.0.0-dataease.js";import"./@ctrl-0.0.0-dataease.js";import"./@popperjs-0.0.0-dataease.js";import"./escape-html-0.0.0-dataease.js";import"./normalize-wheel-es-0.0.0-dataease.js";import"./memoize-one-0.0.0-dataease.js";import"./axios-0.0.0-dataease.js";import"./qs-0.0.0-dataease.js";import"./side-channel-0.0.0-dataease.js";import"./get-intrinsic-0.0.0-dataease.js";import"./es-errors-0.0.0-dataease.js";import"./gopd-0.0.0-dataease.js";import"./es-define-property-0.0.0-dataease.js";import"./has-symbols-0.0.0-dataease.js";import"./dunder-proto-0.0.0-dataease.js";import"./call-bind-apply-helpers-0.0.0-dataease.js";import"./function-bind-0.0.0-dataease.js";import"./hasown-0.0.0-dataease.js";import"./call-bind-0.0.0-dataease.js";import"./set-function-length-0.0.0-dataease.js";import"./define-data-property-0.0.0-dataease.js";import"./has-property-descriptors-0.0.0-dataease.js";import"./object-inspect-0.0.0-dataease.js";import"./crypto-js-0.0.0-dataease.js";import"./vue-router-0.0.0-dataease.js";import"./lodash-0.0.0-dataease.js";import"./vue-0.0.0-dataease.js";import"./tinymce-0.0.0-dataease.js";import"./user-0.0.0-dataease.js";import"./tslib-0.0.0-dataease.js";import"./copy-anything-0.0.0-dataease.js";import"./is-what-0.0.0-dataease.js";const d="./de2api",i=d+"/appearance/image/",{wsCache:T}=v(),S=b("appearanceStore",{state:()=>({themeColor:"",customColor:"",navigateBg:"",navigate:"",mobileLogin:"",mobileLoginBg:"",help:"",showDoc:"0",showAi:"0",showCopilot:"0",showAbout:"0",bg:"",login:"",slogan:"",web:"",name:"",foot:"false",footContent:"",loaded:!1,showDemoTips:!1,demoTipsContent:"",community:!0,fontList:[]}),getters:{getNavigate(){return this.navigate?i+this.navigate:null},getMobileLogin(){return this.mobileLogin?i+this.mobileLogin:null},getMobileLoginBg(){return this.mobileLoginBg?i+this.mobileLoginBg:null},getHelp(){return this.help},getThemeColor(){return this.themeColor},getCustomColor(){return this.customColor},getNavigateBg(){return this.navigateBg},getBg(){return this.bg?i+this.bg:null},getLogin(){return this.login?i+this.login:null},getSlogan(){return this.slogan},getWeb(){return this.web?i+this.web:null},getName(){return this.name},getLoaded(){return this.loaded},getFoot(){return this.foot},getFootContent(){return this.footContent},getShowDemoTips(){return this.showDemoTips},getDemoTipsContent(){return this.demoTipsContent},getCommunity(){return this.community},getShowAi(){return a(this.showAi)},getShowCopilot(){return a(this.showCopilot)},getShowDoc(){return a(this.showDoc)},getShowAbout(){return a(this.showAbout)}},actions:{setNavigate(t){this.navigate=t},setMobileLogin(t){this.mobileLogin=t},async setFontList(){const t=await E();this.fontList=t||[]},setCurrentFont(t){const c=this.fontList.find(o=>o.name===t);if(c){let o=document.querySelector(`#de-custom_font${t}`);o||(o=document.createElement("style"),o.setAttribute("id",`de-custom_font${t}`),document.querySelector("head").appendChild(o)),o.innerHTML=`@font-face {
|
||||
import{d as b}from"./pinia-0.0.0-dataease.js";import{a as v,g as L}from"./index-0.0.0-dataease.js";import{l as E,d as B}from"./font-0.0.0-dataease.js";import{z as a,A as P,B as f}from"./index-0.0.0-dataease2.js";import{_ as p,a as n}from"./less-0.0.0-dataease.js";import"./vue-demi-0.0.0-dataease.js";import"./@vue-0.0.0-dataease.js";import"./mitt-0.0.0-dataease.js";import"./vue-types-0.0.0-dataease.js";import"./is-plain-object-0.0.0-dataease.js";import"./jspdf-0.0.0-dataease.js";import"./@babel-0.0.0-dataease.js";import"./@amap-0.0.0-dataease.js";import"./fflate-0.0.0-dataease.js";import"./vue-i18n-0.0.0-dataease.js";import"./@intlify-0.0.0-dataease.js";import"./web-storage-cache-0.0.0-dataease.js";import"./element-plus-secondary-0.0.0-dataease.js";import"./@vueuse-0.0.0-dataease.js";import"./@element-plus-0.0.0-dataease.js";import"./lodash-es-0.0.0-dataease.js";import"./dayjs-0.0.0-dataease.js";import"./async-validator-0.0.0-dataease.js";import"./@ctrl-0.0.0-dataease.js";import"./@popperjs-0.0.0-dataease.js";import"./escape-html-0.0.0-dataease.js";import"./normalize-wheel-es-0.0.0-dataease.js";import"./memoize-one-0.0.0-dataease.js";import"./axios-0.0.0-dataease.js";import"./qs-0.0.0-dataease.js";import"./side-channel-0.0.0-dataease.js";import"./get-intrinsic-0.0.0-dataease.js";import"./es-errors-0.0.0-dataease.js";import"./gopd-0.0.0-dataease.js";import"./es-define-property-0.0.0-dataease.js";import"./has-symbols-0.0.0-dataease.js";import"./dunder-proto-0.0.0-dataease.js";import"./call-bind-apply-helpers-0.0.0-dataease.js";import"./function-bind-0.0.0-dataease.js";import"./hasown-0.0.0-dataease.js";import"./call-bind-0.0.0-dataease.js";import"./set-function-length-0.0.0-dataease.js";import"./define-data-property-0.0.0-dataease.js";import"./has-property-descriptors-0.0.0-dataease.js";import"./object-inspect-0.0.0-dataease.js";import"./crypto-js-0.0.0-dataease.js";import"./vue-router-0.0.0-dataease.js";import"./lodash-0.0.0-dataease.js";import"./vue-0.0.0-dataease.js";import"./tinymce-0.0.0-dataease.js";import"./user-0.0.0-dataease.js";import"./tslib-0.0.0-dataease.js";import"./copy-anything-0.0.0-dataease.js";import"./is-what-0.0.0-dataease.js";const d="./de2api",i=d+"/appearance/image/",{wsCache:S}=v(),T=b("appearanceStore",{state:()=>({themeColor:"",customColor:"",navigateBg:"",navigate:"",mobileLogin:"",mobileLoginBg:"",help:"",showDoc:"0",showAi:"0",showCopilot:"0",showAbout:"0",bg:"",login:"",slogan:"",web:"",name:"",foot:"false",footContent:"",loaded:!1,showDemoTips:!1,demoTipsContent:"",community:!0,fontList:[]}),getters:{getNavigate(){return this.navigate?i+this.navigate:null},getMobileLogin(){return this.mobileLogin?i+this.mobileLogin:null},getMobileLoginBg(){return this.mobileLoginBg?i+this.mobileLoginBg:null},getHelp(){return this.help},getThemeColor(){return this.themeColor},getCustomColor(){return this.customColor},getNavigateBg(){return this.navigateBg},getBg(){return this.bg?i+this.bg:null},getLogin(){return this.login?i+this.login:null},getSlogan(){return this.slogan},getWeb(){return this.web?i+this.web:null},getName(){return this.name},getLoaded(){return this.loaded},getFoot(){return this.foot},getFootContent(){return this.footContent},getShowDemoTips(){return this.showDemoTips},getDemoTipsContent(){return this.demoTipsContent},getCommunity(){return this.community},getShowAi(){return a(this.showAi)},getShowCopilot(){return a(this.showCopilot)},getShowDoc(){return a(this.showDoc)},getShowAbout(){return a(this.showAbout)}},actions:{setNavigate(t){this.navigate=t},setMobileLogin(t){this.mobileLogin=t},async setFontList(){const t=await E();this.fontList=t||[]},setCurrentFont(t){const h=this.fontList.find(o=>o.name===t);if(h){let o=document.querySelector(`#de-custom_font${t}`);o||(o=document.createElement("style"),o.setAttribute("id",`de-custom_font${t}`),document.querySelector("head").appendChild(o)),o.innerHTML=`@font-face {
|
||||
font-family: '${t}';
|
||||
src: url(${d}/typeface/download/${c.fileTransName});
|
||||
src: url(${d}/typeface/download/${h.fileTransName});
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}`}},setMobileLoginBg(t){this.mobileLoginBg=t},setHelp(t){this.help=t},setNavigateBg(t){this.navigateBg=t},setThemeColor(t){this.themeColor=t},setCustomColor(t){this.customColor=t},setLoaded(t){this.loaded=t},async setAppearance(t){if(T.get("app.desktop")&&(this.loaded=!0,this.community=!0),this.loaded)return;B().then(s=>{const[r]=s||[];y(`${d}/typeface/download/${r==null?void 0:r.fileTransName}`,r==null?void 0:r.name,r==null?void 0:r.fileTransName);function y(C,u,w){let m=document.querySelector("#de-custom_font");m||(m=document.createElement("style"),m.setAttribute("id","de-custom_font"),document.querySelector("head").appendChild(m)),m.innerHTML=u&&w?`@font-face {
|
||||
}`}},setMobileLoginBg(t){this.mobileLoginBg=t},setHelp(t){this.help=t},setNavigateBg(t){this.navigateBg=t},setThemeColor(t){this.themeColor=t},setCustomColor(t){this.customColor=t},setLoaded(t){this.loaded=t},async setAppearance(t){if(S.get("app.desktop")&&(this.loaded=!0,this.community=!0),this.loaded)return;B().then(s=>{const[r]=s||[];y(`${d}/typeface/download/${r==null?void 0:r.fileTransName}`,r==null?void 0:r.name,r==null?void 0:r.fileTransName);function y(C,u,w){let m=document.querySelector("#de-custom_font");m||(m=document.createElement("style"),m.setAttribute("id","de-custom_font"),document.querySelector("head").appendChild(m)),m.innerHTML=u&&w?`@font-face {
|
||||
font-family: '${u}';
|
||||
src: url(${C});
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}`:"",document.documentElement.style.setProperty("--de-custom_font",`${u}`),document.documentElement.style.setProperty("--van-base-font",`${u}`)}}),t||(document.title="");const o=await P();this.loaded=!0;const l=o.data;if(!(l!=null&&l.length)){t||(document.title="DataEase");return}const e={loaded:!1,community:!0};let g=!1;if(l.forEach(s=>{e[s.pkey]=s.pval,s.pkey==="community"&&(g=!0)}),e.community=g,this.community=e.community,this.community){this.showDemoTips=e.showDemoTips,this.demoTipsContent=e.demoTipsContent,this.loaded=!0;return}if(this.navigate=e.navigate,this.mobileLogin=e.mobileLogin,this.mobileLoginBg=e.mobileLoginBg,this.help=e.help,this.showAi=e.showAi,this.showCopilot=e.showCopilot,this.showDoc=e.showDoc,this.showAbout=e.showAbout,this.navigateBg=e.navigateBg,this.themeColor=e.themeColor,this.customColor=e.customColor,this.themeColor==="custom"&&this.customColor?(document.documentElement.style.setProperty("--ed-color-primary",this.customColor),document.documentElement.style.setProperty("--van-blue",this.customColor),document.documentElement.style.setProperty("--ed-color-primary-light-5",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:40}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-light-3",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:15}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-1a",`${this.customColor}1a`),document.documentElement.style.setProperty("--ed-color-primary-33",`${this.customColor}33`),document.documentElement.style.setProperty("--ed-color-primary-99",`${this.customColor}99`),document.documentElement.style.setProperty("--ed-color-primary-dark-2",p.mix(new n("000000"),new n(this.customColor.substr(1)),{value:15}).toRGB())):document.documentElement.style.getPropertyValue("--ed-color-primary")&&(document.documentElement.style.setProperty("--ed-color-primary","#3370FF"),document.documentElement.style.removeProperty("--ed-color-primary-light-3"),document.documentElement.style.removeProperty("--ed-color-primary-light-5"),document.documentElement.style.removeProperty("--ed-color-primary-1a"),document.documentElement.style.removeProperty("--ed-color-primary-33"),document.documentElement.style.removeProperty("--ed-color-primary-99"),document.documentElement.style.removeProperty("--ed-color-primary-dark-2")),this.bg=e.bg,this.login=e.login,this.slogan=e.slogan,this.web=e.web,this.name=e.name,this.foot=e.foot,this.footContent=e.footContent,t)return;this.name?(document.title=this.name,f(this.name)):(document.title="DataEase",f("DataEase"));const h=document.querySelector('link[rel="icon"]');h&&(this.web?h.href=i+this.web:h.href="/dataease.svg")}}}),At=()=>S(L);export{S as useAppearanceStore,At as useAppearanceStoreWithOut};
|
||||
}`:"",document.documentElement.style.setProperty("--de-custom_font",`${u}`),document.documentElement.style.setProperty("--van-base-font",`${u}`)}}),t||(document.title="");const o=await P();this.loaded=!0;const l=o.data;if(!(l!=null&&l.length)){t||(document.title="DataEase");return}const e={loaded:!1,community:!0};let g=!1;if(l.forEach(s=>{e[s.pkey]=s.pval,s.pkey==="community"&&(g=!0)}),e.community=g,this.community=e.community,this.community){this.showDemoTips=e.showDemoTips,this.demoTipsContent=e.demoTipsContent,this.loaded=!0;return}if(this.navigate=e.navigate,this.mobileLogin=e.mobileLogin,this.mobileLoginBg=e.mobileLoginBg,this.help=e.help,this.showAi=e.showAi,this.showCopilot=e.showCopilot,this.showDoc=e.showDoc,this.showAbout=e.showAbout,this.navigateBg=e.navigateBg,this.themeColor=e.themeColor,this.customColor=e.customColor,this.themeColor==="custom"&&this.customColor?(document.documentElement.style.setProperty("--ed-color-primary",this.customColor),document.documentElement.style.setProperty("--van-blue",this.customColor),document.documentElement.style.setProperty("--ed-color-primary-light-5",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:40}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-light-3",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:15}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-1a",`${this.customColor}1a`),document.documentElement.style.setProperty("--ed-color-primary-33",`${this.customColor}33`),document.documentElement.style.setProperty("--ed-color-primary-99",`${this.customColor}99`),document.documentElement.style.setProperty("--ed-color-primary-dark-2",p.mix(new n("000000"),new n(this.customColor.substr(1)),{value:15}).toRGB())):document.documentElement.style.getPropertyValue("--ed-color-primary")&&(document.documentElement.style.setProperty("--ed-color-primary","#3370FF"),document.documentElement.style.removeProperty("--ed-color-primary-light-3"),document.documentElement.style.removeProperty("--ed-color-primary-light-5"),document.documentElement.style.removeProperty("--ed-color-primary-1a"),document.documentElement.style.removeProperty("--ed-color-primary-33"),document.documentElement.style.removeProperty("--ed-color-primary-99"),document.documentElement.style.removeProperty("--ed-color-primary-dark-2")),this.bg=e.bg,this.login=e.login,this.slogan=e.slogan,this.web=e.web,this.name=e.name,this.foot=e.foot,this.footContent=e.footContent,t)return;this.name?(document.title=this.name,f(this.name)):(document.title="DataEase",f("DataEase"));const c=document.querySelector('link[rel="icon"]');c&&(this.web?c.href=i+this.web:c.href="/dataease.svg")}}}),At=()=>T(L);export{T as useAppearanceStore,At as useAppearanceStoreWithOut};
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,11 +1,11 @@
|
||||
import{d as b}from"./pinia-0.0.0-dataease.js";import{a as v,g as L}from"./index-0.0.0-dataease.js";import{l as E,d as B}from"./font-0.0.0-dataease.js";import{z as a,A as P,B as f}from"./index-0.0.0-dataease2.js";import{_ as p,c as n}from"./less-0.0.0-dataease.js";import"./vue-demi-0.0.0-dataease.js";import"./@vue-0.0.0-dataease.js";import"./mitt-0.0.0-dataease.js";import"./vue-types-0.0.0-dataease.js";import"./is-plain-object-0.0.0-dataease.js";import"./jspdf-0.0.0-dataease.js";import"./@babel-0.0.0-dataease.js";import"./@amap-0.0.0-dataease.js";import"./fflate-0.0.0-dataease.js";import"./vue-i18n-0.0.0-dataease.js";import"./@intlify-0.0.0-dataease.js";import"./web-storage-cache-0.0.0-dataease.js";import"./element-plus-secondary-0.0.0-dataease.js";import"./@vueuse-0.0.0-dataease.js";import"./@element-plus-0.0.0-dataease.js";import"./lodash-es-0.0.0-dataease.js";import"./dayjs-0.0.0-dataease.js";import"./async-validator-0.0.0-dataease.js";import"./@ctrl-0.0.0-dataease.js";import"./@popperjs-0.0.0-dataease.js";import"./escape-html-0.0.0-dataease.js";import"./normalize-wheel-es-0.0.0-dataease.js";import"./memoize-one-0.0.0-dataease.js";import"./axios-0.0.0-dataease.js";import"./qs-0.0.0-dataease.js";import"./side-channel-0.0.0-dataease.js";import"./get-intrinsic-0.0.0-dataease.js";import"./es-errors-0.0.0-dataease.js";import"./gopd-0.0.0-dataease.js";import"./es-define-property-0.0.0-dataease.js";import"./has-symbols-0.0.0-dataease.js";import"./dunder-proto-0.0.0-dataease.js";import"./call-bind-apply-helpers-0.0.0-dataease.js";import"./function-bind-0.0.0-dataease.js";import"./hasown-0.0.0-dataease.js";import"./call-bind-0.0.0-dataease.js";import"./set-function-length-0.0.0-dataease.js";import"./define-data-property-0.0.0-dataease.js";import"./has-property-descriptors-0.0.0-dataease.js";import"./object-inspect-0.0.0-dataease.js";import"./crypto-js-0.0.0-dataease.js";import"./vue-router-0.0.0-dataease.js";import"./lodash-0.0.0-dataease.js";import"./vue-0.0.0-dataease.js";import"./tinymce-0.0.0-dataease.js";import"./user-0.0.0-dataease.js";import"./tslib-0.0.0-dataease.js";import"./copy-anything-0.0.0-dataease.js";import"./is-what-0.0.0-dataease.js";const d="./de2api",i=d+"/appearance/image/",{wsCache:T}=v(),S=b("appearanceStore",{state:()=>({themeColor:"",customColor:"",navigateBg:"",navigate:"",mobileLogin:"",mobileLoginBg:"",help:"",showDoc:"0",showAi:"0",showCopilot:"0",showAbout:"0",bg:"",login:"",slogan:"",web:"",name:"",foot:"false",footContent:"",loaded:!1,showDemoTips:!1,demoTipsContent:"",community:!0,fontList:[]}),getters:{getNavigate(){return this.navigate?i+this.navigate:null},getMobileLogin(){return this.mobileLogin?i+this.mobileLogin:null},getMobileLoginBg(){return this.mobileLoginBg?i+this.mobileLoginBg:null},getHelp(){return this.help},getThemeColor(){return this.themeColor},getCustomColor(){return this.customColor},getNavigateBg(){return this.navigateBg},getBg(){return this.bg?i+this.bg:null},getLogin(){return this.login?i+this.login:null},getSlogan(){return this.slogan},getWeb(){return this.web?i+this.web:null},getName(){return this.name},getLoaded(){return this.loaded},getFoot(){return this.foot},getFootContent(){return this.footContent},getShowDemoTips(){return this.showDemoTips},getDemoTipsContent(){return this.demoTipsContent},getCommunity(){return this.community},getShowAi(){return a(this.showAi)},getShowCopilot(){return a(this.showCopilot)},getShowDoc(){return a(this.showDoc)},getShowAbout(){return a(this.showAbout)}},actions:{setNavigate(t){this.navigate=t},setMobileLogin(t){this.mobileLogin=t},async setFontList(){const t=await E();this.fontList=t||[]},setCurrentFont(t){const c=this.fontList.find(o=>o.name===t);if(c){let o=document.querySelector(`#de-custom_font${t}`);o||(o=document.createElement("style"),o.setAttribute("id",`de-custom_font${t}`),document.querySelector("head").appendChild(o)),o.innerHTML=`@font-face {
|
||||
import{d as b}from"./pinia-0.0.0-dataease.js";import{a as v,g as L}from"./index-0.0.0-dataease.js";import{l as E,d as B}from"./font-0.0.0-dataease.js";import{z as a,A as P,B as f}from"./index-0.0.0-dataease2.js";import{_ as p,a as n}from"./less-0.0.0-dataease.js";import"./vue-demi-0.0.0-dataease.js";import"./@vue-0.0.0-dataease.js";import"./mitt-0.0.0-dataease.js";import"./vue-types-0.0.0-dataease.js";import"./is-plain-object-0.0.0-dataease.js";import"./jspdf-0.0.0-dataease.js";import"./@babel-0.0.0-dataease.js";import"./@amap-0.0.0-dataease.js";import"./fflate-0.0.0-dataease.js";import"./vue-i18n-0.0.0-dataease.js";import"./@intlify-0.0.0-dataease.js";import"./web-storage-cache-0.0.0-dataease.js";import"./element-plus-secondary-0.0.0-dataease.js";import"./@vueuse-0.0.0-dataease.js";import"./@element-plus-0.0.0-dataease.js";import"./lodash-es-0.0.0-dataease.js";import"./dayjs-0.0.0-dataease.js";import"./async-validator-0.0.0-dataease.js";import"./@ctrl-0.0.0-dataease.js";import"./@popperjs-0.0.0-dataease.js";import"./escape-html-0.0.0-dataease.js";import"./normalize-wheel-es-0.0.0-dataease.js";import"./memoize-one-0.0.0-dataease.js";import"./axios-0.0.0-dataease.js";import"./qs-0.0.0-dataease.js";import"./side-channel-0.0.0-dataease.js";import"./get-intrinsic-0.0.0-dataease.js";import"./es-errors-0.0.0-dataease.js";import"./gopd-0.0.0-dataease.js";import"./es-define-property-0.0.0-dataease.js";import"./has-symbols-0.0.0-dataease.js";import"./dunder-proto-0.0.0-dataease.js";import"./call-bind-apply-helpers-0.0.0-dataease.js";import"./function-bind-0.0.0-dataease.js";import"./hasown-0.0.0-dataease.js";import"./call-bind-0.0.0-dataease.js";import"./set-function-length-0.0.0-dataease.js";import"./define-data-property-0.0.0-dataease.js";import"./has-property-descriptors-0.0.0-dataease.js";import"./object-inspect-0.0.0-dataease.js";import"./crypto-js-0.0.0-dataease.js";import"./vue-router-0.0.0-dataease.js";import"./lodash-0.0.0-dataease.js";import"./vue-0.0.0-dataease.js";import"./tinymce-0.0.0-dataease.js";import"./user-0.0.0-dataease.js";import"./tslib-0.0.0-dataease.js";import"./copy-anything-0.0.0-dataease.js";import"./is-what-0.0.0-dataease.js";const d="./de2api",i=d+"/appearance/image/",{wsCache:S}=v(),T=b("appearanceStore",{state:()=>({themeColor:"",customColor:"",navigateBg:"",navigate:"",mobileLogin:"",mobileLoginBg:"",help:"",showDoc:"0",showAi:"0",showCopilot:"0",showAbout:"0",bg:"",login:"",slogan:"",web:"",name:"",foot:"false",footContent:"",loaded:!1,showDemoTips:!1,demoTipsContent:"",community:!0,fontList:[]}),getters:{getNavigate(){return this.navigate?i+this.navigate:null},getMobileLogin(){return this.mobileLogin?i+this.mobileLogin:null},getMobileLoginBg(){return this.mobileLoginBg?i+this.mobileLoginBg:null},getHelp(){return this.help},getThemeColor(){return this.themeColor},getCustomColor(){return this.customColor},getNavigateBg(){return this.navigateBg},getBg(){return this.bg?i+this.bg:null},getLogin(){return this.login?i+this.login:null},getSlogan(){return this.slogan},getWeb(){return this.web?i+this.web:null},getName(){return this.name},getLoaded(){return this.loaded},getFoot(){return this.foot},getFootContent(){return this.footContent},getShowDemoTips(){return this.showDemoTips},getDemoTipsContent(){return this.demoTipsContent},getCommunity(){return this.community},getShowAi(){return a(this.showAi)},getShowCopilot(){return a(this.showCopilot)},getShowDoc(){return a(this.showDoc)},getShowAbout(){return a(this.showAbout)}},actions:{setNavigate(t){this.navigate=t},setMobileLogin(t){this.mobileLogin=t},async setFontList(){const t=await E();this.fontList=t||[]},setCurrentFont(t){const h=this.fontList.find(o=>o.name===t);if(h){let o=document.querySelector(`#de-custom_font${t}`);o||(o=document.createElement("style"),o.setAttribute("id",`de-custom_font${t}`),document.querySelector("head").appendChild(o)),o.innerHTML=`@font-face {
|
||||
font-family: '${t}';
|
||||
src: url(${d}/typeface/download/${c.fileTransName});
|
||||
src: url(${d}/typeface/download/${h.fileTransName});
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}`}},setMobileLoginBg(t){this.mobileLoginBg=t},setHelp(t){this.help=t},setNavigateBg(t){this.navigateBg=t},setThemeColor(t){this.themeColor=t},setCustomColor(t){this.customColor=t},setLoaded(t){this.loaded=t},async setAppearance(t){if(T.get("app.desktop")&&(this.loaded=!0,this.community=!0),this.loaded)return;B().then(s=>{const[r]=s||[];y(`${d}/typeface/download/${r==null?void 0:r.fileTransName}`,r==null?void 0:r.name,r==null?void 0:r.fileTransName);function y(C,u,w){let m=document.querySelector("#de-custom_font");m||(m=document.createElement("style"),m.setAttribute("id","de-custom_font"),document.querySelector("head").appendChild(m)),m.innerHTML=u&&w?`@font-face {
|
||||
}`}},setMobileLoginBg(t){this.mobileLoginBg=t},setHelp(t){this.help=t},setNavigateBg(t){this.navigateBg=t},setThemeColor(t){this.themeColor=t},setCustomColor(t){this.customColor=t},setLoaded(t){this.loaded=t},async setAppearance(t){if(S.get("app.desktop")&&(this.loaded=!0,this.community=!0),this.loaded)return;B().then(s=>{const[r]=s||[];y(`${d}/typeface/download/${r==null?void 0:r.fileTransName}`,r==null?void 0:r.name,r==null?void 0:r.fileTransName);function y(C,u,w){let m=document.querySelector("#de-custom_font");m||(m=document.createElement("style"),m.setAttribute("id","de-custom_font"),document.querySelector("head").appendChild(m)),m.innerHTML=u&&w?`@font-face {
|
||||
font-family: '${u}';
|
||||
src: url(${C});
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}`:"",document.documentElement.style.setProperty("--de-custom_font",`${u}`),document.documentElement.style.setProperty("--van-base-font",`${u}`)}}),t||(document.title="");const o=await P();this.loaded=!0;const l=o.data;if(!(l!=null&&l.length)){t||(document.title="DataEase");return}const e={loaded:!1,community:!0};let g=!1;if(l.forEach(s=>{e[s.pkey]=s.pval,s.pkey==="community"&&(g=!0)}),e.community=g,this.community=e.community,this.community){this.showDemoTips=e.showDemoTips,this.demoTipsContent=e.demoTipsContent,this.loaded=!0;return}if(this.navigate=e.navigate,this.mobileLogin=e.mobileLogin,this.mobileLoginBg=e.mobileLoginBg,this.help=e.help,this.showAi=e.showAi,this.showCopilot=e.showCopilot,this.showDoc=e.showDoc,this.showAbout=e.showAbout,this.navigateBg=e.navigateBg,this.themeColor=e.themeColor,this.customColor=e.customColor,this.themeColor==="custom"&&this.customColor?(document.documentElement.style.setProperty("--ed-color-primary",this.customColor),document.documentElement.style.setProperty("--van-blue",this.customColor),document.documentElement.style.setProperty("--ed-color-primary-light-5",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:40}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-light-3",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:15}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-1a",`${this.customColor}1a`),document.documentElement.style.setProperty("--ed-color-primary-33",`${this.customColor}33`),document.documentElement.style.setProperty("--ed-color-primary-99",`${this.customColor}99`),document.documentElement.style.setProperty("--ed-color-primary-dark-2",p.mix(new n("000000"),new n(this.customColor.substr(1)),{value:15}).toRGB())):document.documentElement.style.getPropertyValue("--ed-color-primary")&&(document.documentElement.style.setProperty("--ed-color-primary","#3370FF"),document.documentElement.style.removeProperty("--ed-color-primary-light-3"),document.documentElement.style.removeProperty("--ed-color-primary-light-5"),document.documentElement.style.removeProperty("--ed-color-primary-1a"),document.documentElement.style.removeProperty("--ed-color-primary-33"),document.documentElement.style.removeProperty("--ed-color-primary-99"),document.documentElement.style.removeProperty("--ed-color-primary-dark-2")),this.bg=e.bg,this.login=e.login,this.slogan=e.slogan,this.web=e.web,this.name=e.name,this.foot=e.foot,this.footContent=e.footContent,t)return;this.name?(document.title=this.name,f(this.name)):(document.title="DataEase",f("DataEase"));const h=document.querySelector('link[rel="icon"]');h&&(this.web?h.href=i+this.web:h.href="/dataease.svg")}}}),At=()=>S(L);export{S as useAppearanceStore,At as useAppearanceStoreWithOut};
|
||||
}`:"",document.documentElement.style.setProperty("--de-custom_font",`${u}`),document.documentElement.style.setProperty("--van-base-font",`${u}`)}}),t||(document.title="");const o=await P();this.loaded=!0;const l=o.data;if(!(l!=null&&l.length)){t||(document.title="DataEase");return}const e={loaded:!1,community:!0};let g=!1;if(l.forEach(s=>{e[s.pkey]=s.pval,s.pkey==="community"&&(g=!0)}),e.community=g,this.community=e.community,this.community){this.showDemoTips=e.showDemoTips,this.demoTipsContent=e.demoTipsContent,this.loaded=!0;return}if(this.navigate=e.navigate,this.mobileLogin=e.mobileLogin,this.mobileLoginBg=e.mobileLoginBg,this.help=e.help,this.showAi=e.showAi,this.showCopilot=e.showCopilot,this.showDoc=e.showDoc,this.showAbout=e.showAbout,this.navigateBg=e.navigateBg,this.themeColor=e.themeColor,this.customColor=e.customColor,this.themeColor==="custom"&&this.customColor?(document.documentElement.style.setProperty("--ed-color-primary",this.customColor),document.documentElement.style.setProperty("--van-blue",this.customColor),document.documentElement.style.setProperty("--ed-color-primary-light-5",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:40}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-light-3",p.mix(new n("ffffff"),new n(this.customColor.substr(1)),{value:15}).toRGB()),document.documentElement.style.setProperty("--ed-color-primary-1a",`${this.customColor}1a`),document.documentElement.style.setProperty("--ed-color-primary-33",`${this.customColor}33`),document.documentElement.style.setProperty("--ed-color-primary-99",`${this.customColor}99`),document.documentElement.style.setProperty("--ed-color-primary-dark-2",p.mix(new n("000000"),new n(this.customColor.substr(1)),{value:15}).toRGB())):document.documentElement.style.getPropertyValue("--ed-color-primary")&&(document.documentElement.style.setProperty("--ed-color-primary","#3370FF"),document.documentElement.style.removeProperty("--ed-color-primary-light-3"),document.documentElement.style.removeProperty("--ed-color-primary-light-5"),document.documentElement.style.removeProperty("--ed-color-primary-1a"),document.documentElement.style.removeProperty("--ed-color-primary-33"),document.documentElement.style.removeProperty("--ed-color-primary-99"),document.documentElement.style.removeProperty("--ed-color-primary-dark-2")),this.bg=e.bg,this.login=e.login,this.slogan=e.slogan,this.web=e.web,this.name=e.name,this.foot=e.foot,this.footContent=e.footContent,t)return;this.name?(document.title=this.name,f(this.name)):(document.title="DataEase",f("DataEase"));const c=document.querySelector('link[rel="icon"]');c&&(this.web?c.href=i+this.web:c.href="/dataease.svg")}}}),At=()=>T(L);export{T as useAppearanceStore,At as useAppearanceStoreWithOut};
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in new issue