themekit-js 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -27
- package/dist/client/app/components/Content.js +1 -1
- package/dist/client/app/composables/codeGroups.js +1 -1
- package/dist/client/app/composables/copyCode.js +1 -1
- package/dist/client/app/devtools.js +4 -4
- package/dist/client/app/router.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -2
- package/dist/client/shared.js +1 -1
- package/dist/client/theme-default/Layout.vue +1 -1
- package/dist/client/theme-default/NotFound.vue +1 -1
- package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +2 -2
- package/dist/client/theme-default/components/VPCarbonAds.vue +1 -1
- package/dist/client/theme-default/components/VPDoc.vue +1 -1
- package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +1 -1
- package/dist/client/theme-default/components/VPDocAsideOutline.vue +1 -1
- package/dist/client/theme-default/components/VPFeature.vue +1 -1
- package/dist/client/theme-default/components/VPFeatures.vue +1 -1
- package/dist/client/theme-default/components/VPHero.vue +1 -1
- package/dist/client/theme-default/components/VPImage.vue +2 -2
- package/dist/client/theme-default/components/VPLocalNav.vue +1 -1
- package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +1 -1
- package/dist/client/theme-default/components/VPLocalSearchBox.vue +1 -1
- package/dist/client/theme-default/components/VPMenuLink.vue +1 -1
- package/dist/client/theme-default/components/VPNav.vue +1 -1
- package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +1 -1
- package/dist/client/theme-default/components/VPNavBarMenuLink.vue +1 -1
- package/dist/client/theme-default/components/VPNavScreen.vue +1 -1
- package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +1 -1
- package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +1 -1
- package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +1 -1
- package/dist/client/theme-default/components/VPSidebar.vue +1 -1
- package/dist/client/theme-default/components/VPSidebarItem.vue +1 -1
- package/dist/client/theme-default/components/VPSkipLink.vue +1 -1
- package/dist/client/theme-default/components/VPSocialLink.vue +1 -1
- package/dist/client/theme-default/components/VPSocialLinks.vue +1 -1
- package/dist/client/theme-default/components/VPTeamMembers.vue +1 -1
- package/dist/client/theme-default/components/VPTeamMembersItem.vue +1 -1
- package/dist/client/theme-default/composables/data.js +1 -1
- package/dist/client/theme-default/composables/local-nav.js +1 -1
- package/dist/client/theme-default/composables/nav.js +1 -1
- package/dist/client/theme-default/composables/outline.js +1 -1
- package/dist/client/theme-default/support/utils.js +1 -1
- package/dist/node/cli.js +1 -1
- package/dist/node/index.d.ts +2 -1
- package/dist/node/index.js +2 -2
- package/dist/node/{serve-BjvG349_.js → serve-C7_9EEpC.js} +92 -40
- package/package.json +6 -6
- package/template/.themekit/bootstrap3/dist/css/bootstrap-theme.css +587 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap-theme.css.map +1 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap-theme.min.css +6 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap-theme.min.css.map +1 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap.css +6834 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap.css.map +1 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap.min.css +6 -0
- package/template/.themekit/bootstrap3/dist/css/bootstrap.min.css.map +1 -0
- package/template/.themekit/bootstrap3/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- package/template/.themekit/bootstrap3/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- package/template/.themekit/bootstrap3/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/template/.themekit/bootstrap3/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- package/template/.themekit/bootstrap3/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/template/.themekit/bootstrap3/dist/js/bootstrap.js +2580 -0
- package/template/.themekit/bootstrap3/dist/js/bootstrap.min.js +6 -0
- package/template/.themekit/bootstrap3/dist/js/html5shiv.min.js +4 -0
- package/template/.themekit/bootstrap3/dist/js/jquery.min.js +5 -0
- package/template/.themekit/bootstrap3/dist/js/npm.js +13 -0
- package/template/.themekit/bootstrap3/dist/js/respond.min.js +6 -0
- package/template/.themekit/changzhou/dist/css/animate.css +1 -0
- package/template/.themekit/changzhou/dist/css/bootstrap-select.min.css +6 -0
- package/template/.themekit/changzhou/dist/css/carousel.css +25 -0
- package/template/.themekit/changzhou/dist/css/font-awesome.min.css +4 -0
- package/template/.themekit/changzhou/dist/css/prettyPhoto.css +170 -0
- package/template/.themekit/changzhou/dist/css/style.css +2315 -0
- package/template/.themekit/changzhou/dist/js/bootstrap-select.min.js +14 -0
- package/template/.themekit/changzhou/dist/js/carousel.js +3300 -0
- package/template/.themekit/changzhou/dist/js/custom.js +42 -0
- package/template/.themekit/changzhou/dist/js/jquery.prettyPhoto.js +11 -0
- package/template/.themekit/changzhou/dist/js/map.js +112 -0
- package/template/.themekit/changzhou/dist/js/parallax.js +17 -0
- package/template/.themekit/changzhou/dist/js/vendor/html5shiv.js +2125 -0
- package/template/.themekit/changzhou/dist/js/vendor/respond.min.js +2156 -0
- package/template/.themekit/changzhou/dist/js/videobg.js +70 -0
- package/template/.themekit/changzhou/theme/Layout.vue +21 -0
- package/template/.themekit/changzhou/theme/index.js +29 -0
- package/template/.themekit/changzhou/theme/style.css +139 -0
- package/template/{.vitepress → .themekit}/config.js +1 -1
- package/template/{.vitepress → .themekit}/theme/Layout.vue +1 -1
- package/template/{.vitepress → .themekit}/theme/index.js +5 -5
- package/template/api-examples.md +2 -2
- package/template/index.md +1 -2
- package/theme.d.ts +1 -1
- /package/template/{.vitepress → .themekit}/theme/style.css +0 -0
package/README.md
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
[](https://github.com/vuejs/vitepress/actions)
|
|
4
|
-
[](https://www.npmjs.com/package/vitepress)
|
|
5
|
-
[](https://chat.vuejs.org)
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
VitePress is a Vue-powered static site generator and a spiritual successor to [VuePress](https://vuepress.vuejs.org), built on top of [Vite](https://github.com/vitejs/vite).
|
|
10
|
-
|
|
11
|
-
## Documentation
|
|
12
|
-
|
|
13
|
-
To check out docs, visit [vitepress.dev](https://vitepress.dev).
|
|
14
|
-
|
|
15
|
-
## Changelog
|
|
16
|
-
|
|
17
|
-
Detailed changes for each release are documented in the [CHANGELOG](https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md).
|
|
18
|
-
|
|
19
|
-
## Contribution
|
|
20
|
-
|
|
21
|
-
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md) before making a pull request.
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
|
|
25
|
-
[MIT](https://github.com/vuejs/vitepress/blob/main/LICENSE)
|
|
26
|
-
|
|
27
|
-
Copyright (c) 2019-present, Yuxi (Evan) You
|
|
1
|
+
# ThemeKit
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue';
|
|
2
|
-
import { useData, useRoute } from '
|
|
2
|
+
import { useData, useRoute } from 'themekit-js';
|
|
3
3
|
import { contentUpdatedCallbacks } from '../utils';
|
|
4
4
|
const runCbs = () => contentUpdatedCallbacks.forEach((fn) => fn());
|
|
5
5
|
export const Content = defineComponent({
|
|
@@ -4,10 +4,10 @@ export const setupDevtools = (app, router, data) => {
|
|
|
4
4
|
setupDevToolsPlugin({
|
|
5
5
|
// fix recursive reference
|
|
6
6
|
app: app,
|
|
7
|
-
id: '
|
|
8
|
-
label: '
|
|
9
|
-
packageName: '
|
|
10
|
-
homepage: 'https://
|
|
7
|
+
id: 'com.seedunk.themekit-js',
|
|
8
|
+
label: 'ThemeKit JS',
|
|
9
|
+
packageName: 'themekit-js',
|
|
10
|
+
homepage: 'https://seedunk.com/@themekit-js',
|
|
11
11
|
componentStateTypes: [COMPONENT_STATE_TYPE]
|
|
12
12
|
}, (api) => {
|
|
13
13
|
// TODO: remove any
|
|
@@ -207,7 +207,7 @@ function handleHMR(route) {
|
|
|
207
207
|
// update route.data on HMR updates of active page
|
|
208
208
|
if (import.meta.hot) {
|
|
209
209
|
// hot reload pageData
|
|
210
|
-
import.meta.hot.on('
|
|
210
|
+
import.meta.hot.on('themekit-js:pageData', (payload) => {
|
|
211
211
|
if (shouldHotReload(payload)) {
|
|
212
212
|
route.data = payload.pageData;
|
|
213
213
|
}
|
package/dist/client/index.d.ts
CHANGED
package/dist/client/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
// so the user can do `import { useRoute, useData } from 'vitepress'`
|
|
1
|
+
// so the user can do `import { useRoute, useData } from 'themekit-js'`
|
|
3
2
|
// composables
|
|
4
3
|
export { useData, dataSymbol } from './app/data';
|
|
5
4
|
export { useRoute, useRouter } from './app/router';
|
package/dist/client/shared.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i;
|
|
2
|
-
export const APPEARANCE_KEY = '
|
|
2
|
+
export const APPEARANCE_KEY = 'themekit-js-theme-appearance';
|
|
3
3
|
const HASH_RE = /#.*$/;
|
|
4
4
|
const HASH_OR_QUERY_RE = /[?#].*$/;
|
|
5
5
|
const INDEX_OR_EXT_RE = /(?:(^|\/)index)?\.(?:md|html)$/;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useRoute } from '
|
|
2
|
+
import { useRoute } from 'themekit-js'
|
|
3
3
|
import { computed, provide, useSlots, watch } from 'vue'
|
|
4
4
|
import VPBackdrop from './components/VPBackdrop.vue'
|
|
5
5
|
import VPContent from './components/VPContent.vue'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import docsearch from '@docsearch/js'
|
|
3
|
-
import { useRoute, useRouter } from '
|
|
4
|
-
import type { DefaultTheme } from '
|
|
3
|
+
import { useRoute, useRouter } from 'themekit-js'
|
|
4
|
+
import type { DefaultTheme } from 'themekit-js/theme'
|
|
5
5
|
import { nextTick, onMounted, watch } from 'vue'
|
|
6
6
|
import { useData } from '../composables/data'
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DefaultTheme } from '
|
|
2
|
+
import type { DefaultTheme } from 'themekit-js/theme'
|
|
3
3
|
import { ref, watch, onMounted } from 'vue'
|
|
4
4
|
import { useAside } from '../composables/aside'
|
|
5
5
|
import { useData } from '../composables/data'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { DefaultTheme } from '
|
|
3
|
-
import { withBase } from '
|
|
2
|
+
import type { DefaultTheme } from 'themekit-js/theme'
|
|
3
|
+
import { withBase } from 'themekit-js'
|
|
4
4
|
|
|
5
5
|
defineProps<{
|
|
6
6
|
image: DefaultTheme.ThemeableImage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { useWindowScroll } from '@vueuse/core'
|
|
3
|
-
import { onContentUpdated } from '
|
|
3
|
+
import { onContentUpdated } from 'themekit-js'
|
|
4
4
|
import { computed, onMounted, ref } from 'vue'
|
|
5
5
|
import { useData } from '../composables/data'
|
|
6
6
|
import { useLocalNav } from '../composables/local-nav'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { onClickOutside, onKeyStroke } from '@vueuse/core'
|
|
3
|
-
import { onContentUpdated } from '
|
|
3
|
+
import { onContentUpdated } from 'themekit-js'
|
|
4
4
|
import { nextTick, ref } from 'vue'
|
|
5
5
|
import { useData } from '../composables/data'
|
|
6
6
|
import { resolveTitle, type MenuItem } from '../composables/outline'
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
|
|
13
13
|
import Mark from 'mark.js/src/vanilla.js'
|
|
14
14
|
import MiniSearch, { type SearchResult } from 'minisearch'
|
|
15
|
-
import { dataSymbol, inBrowser, useRouter } from '
|
|
15
|
+
import { dataSymbol, inBrowser, useRouter } from 'themekit-js'
|
|
16
16
|
import {
|
|
17
17
|
computed,
|
|
18
18
|
createApp,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useScrollLock } from '@vueuse/core'
|
|
3
|
-
import { inBrowser } from '
|
|
3
|
+
import { inBrowser } from 'themekit-js'
|
|
4
4
|
import { ref } from 'vue'
|
|
5
5
|
import VPNavScreenAppearance from './VPNavScreenAppearance.vue'
|
|
6
6
|
import VPNavScreenMenu from './VPNavScreenMenu.vue'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import { useScrollLock } from '@vueuse/core'
|
|
3
|
-
import { inBrowser } from '
|
|
3
|
+
import { inBrowser } from 'themekit-js'
|
|
4
4
|
import { ref, watch } from 'vue'
|
|
5
5
|
import { useSidebar } from '../composables/sidebar'
|
|
6
6
|
import VPSidebarItem from './VPSidebarItem.vue'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { useData as useData$ } from '
|
|
1
|
+
import { useData as useData$ } from 'themekit-js';
|
|
2
2
|
export const useData = useData$;
|
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-C7_9EEpC.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.d.ts
CHANGED
|
@@ -4435,7 +4435,8 @@ pattern: string | string[], { includeSrc, render, excerpt: renderExcerpt, transf
|
|
|
4435
4435
|
declare enum ScaffoldThemeType {
|
|
4436
4436
|
Default = "default theme",
|
|
4437
4437
|
DefaultCustom = "default theme + customization",
|
|
4438
|
-
Custom = "custom theme"
|
|
4438
|
+
Custom = "custom theme",
|
|
4439
|
+
ChangZhou = "\u5E38\u5DDE"
|
|
4439
4440
|
}
|
|
4440
4441
|
interface ScaffoldOptions {
|
|
4441
4442
|
root: string;
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-C7_9EEpC.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-C7_9EEpC.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|