misskey-own-theme
syuilo 8 months ago
parent c18c5061eb
commit 7918272009
  1. 7508
      package-lock.json
  2. 6
      package.json
  3. 21
      src/.vuepress/config.ts

7508
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -12,13 +12,13 @@
"devDependencies": {
"@types/three": "^0.133.1",
"@types/tinycolor2": "^1.4.3",
"@vuepress/plugin-register-components": "^2.0.0-beta.27",
"@vuepress/plugin-search": "^2.0.0-beta.27",
"@vuepress/plugin-register-components": "^2.0.0-beta.34",
"@vuepress/plugin-search": "^2.0.0-beta.34",
"execa": "^5.1.1",
"meshline": "^2.0.3",
"three": "^0.134.0",
"tinycolor2": "^1.4.2",
"vuepress": "^2.0.0-beta.27"
"vuepress": "^2.0.0-beta.34"
},
"dependencies": {
"glob": "^7.2.0",

@ -7,6 +7,13 @@ import { getChildPages } from './child-pages';
import { generateEndpointPages } from './generate-endpoint-pages';
import { getInstances } from './get-instances';
const ssrTransformCustomDir = () => {
return {
props: [],
needRuntime: true
}
};
export default defineUserConfig<DefaultThemeOptions>({
// 独自ドメイン使う場合 '/' にする
// 独自ドメイン使わない場合 '/misskey-hub/' にする
@ -289,4 +296,18 @@ export default defineUserConfig<DefaultThemeOptions>({
await getRelatedPages(app);
await getChildPages(app);
},
bundlerConfig: {
vuePluginOptions: {
template: {
ssr: true,
compilerOptions: {
directiveTransforms: {
'parallax': ssrTransformCustomDir,
'fade-in': ssrTransformCustomDir,
},
},
},
},
},
});

Loading…
Cancel
Save