Skip to content

Commit

Permalink
chore: merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 19, 2024
2 parents 4560656 + 86aca66 commit 300603e
Show file tree
Hide file tree
Showing 24 changed files with 514 additions and 321 deletions.
15 changes: 0 additions & 15 deletions cache.dockerfile

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@vueuse/core": "10.7.0",
"dayjs": "^1.10.7",
"lodash": "^4.17.21",
"tdesign-icons-vue-next": "^0.2.6",
"tdesign-icons-vue-next": "^0.3.3",
"validator": "^13.5.1"
},
"peerDependencies": {
Expand Down Expand Up @@ -128,7 +128,6 @@
"@vue/babel-plugin-jsx": "1.1.1",
"@vue/eslint-config-typescript": "^9.1.0",
"@vue/runtime-core": "^3.2.41",
"@vue/server-renderer": "3.3.8",
"@vue/shared": "3.3.8",
"@vue/test-utils": "2.4.1",
"autoprefixer": "^10.2.4",
Expand Down Expand Up @@ -172,7 +171,7 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0",
"rollup-pluginutils": "^2.8.2",
"tdesign-icons-view": "^0.2.2",
"tdesign-icons-view": "^0.3.2",
"tdesign-publish-cli": "^0.0.10",
"tdesign-site-components": "^0.15.2",
"tslib": "^2.3.1",
Expand Down
11 changes: 6 additions & 5 deletions site/web/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import { sortDocs } from './utils';
import { defineComponent } from 'vue';
import packageJson from '../../package.json';
const registryUrl = 'https://mirrors.tencent.com/npm/tdesign-mobile-vue';
const registryUrl =
'https://service-edbzjd6y-1257786608.hk.apigw.tencentcs.com/release/npm/versions/tdesign-mobile-vue';
const currentVersion = packageJson.version.replace(/\./g, '_');
const { docs, enDocs } = JSON.parse(JSON.stringify(siteConfig).replace(/component:.+/g, ''));
Expand All @@ -33,8 +34,8 @@ function watchHtmlMode(callback = () => {}) {
const observerCallback = (mutationsList) => {
for (const mutation of mutationsList) {
if (mutation.attributeName === "theme-mode") {
const themeMode = mutation.target.getAttribute("theme-mode") || 'light';
if (mutation.attributeName === 'theme-mode') {
const themeMode = mutation.target.getAttribute('theme-mode') || 'light';
if (themeMode) callback(themeMode);
}
}
Expand All @@ -46,7 +47,7 @@ function watchHtmlMode(callback = () => {}) {
return observer;
}
function changeIframeMode(mode){
function changeIframeMode(mode) {
const iframe = document.querySelector('iframe');
if (iframe?.contentWindow) {
iframe.contentWindow.document.documentElement.setAttribute('theme-mode', mode);
Expand Down Expand Up @@ -88,7 +89,7 @@ export default defineComponent({
};
this.initHistoryVersions();
watchHtmlMode(changeIframeMode)
watchHtmlMode(changeIframeMode);
},
watch: {
Expand Down
Loading

0 comments on commit 300603e

Please sign in to comment.