├── .github └── workflows │ └── release.yml ├── .gitignore ├── .nvmrc ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── client.d.ts ├── eslint.config.js ├── package.json ├── playground ├── index.html ├── package.json ├── pages.config.ts ├── src │ ├── App.vue │ ├── env.d.ts │ ├── layouts │ │ ├── default.vue │ │ └── posts.vue │ ├── main.ts │ ├── manifest.json │ ├── pages-sub │ │ └── test │ │ │ └── test.vue │ ├── pages.json │ ├── pages │ │ └── index │ │ │ ├── disabled.vue │ │ │ ├── index.vue │ │ │ └── uni-layout.vue │ ├── static │ │ └── logo.png │ ├── uni-pages.d.ts │ └── uni.scss ├── tsconfig.json ├── uni-pages.d.ts └── vite.config.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── renovate.json ├── src ├── constant.ts ├── context.ts ├── index.ts ├── scan.ts ├── types.ts └── utils.ts ├── test ├── __snapshots__ │ ├── context.test.ts.snap │ ├── loadPagesJson.test.ts.snap │ ├── resolveOptions.test.ts.snap │ └── scanLayouts.test.ts.snap ├── context.test.ts ├── fixtures │ └── src │ │ ├── layouts │ │ ├── PascalLayout.vue │ │ ├── camelLayout.vue │ │ ├── default.vue │ │ ├── kebab-layout.vue │ │ ├── no-index │ │ │ └── index.vue │ │ └── the │ │ │ └── nesting │ │ │ └── layout.vue │ │ └── pages.json ├── isTarget.test.ts ├── loadPagesJson.test.ts ├── resolveOptions.test.ts └── scanLayouts.test.ts └── tsconfig.json /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 20 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/README.md -------------------------------------------------------------------------------- /client.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/client.d.ts -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/package.json -------------------------------------------------------------------------------- /playground/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/index.html -------------------------------------------------------------------------------- /playground/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/package.json -------------------------------------------------------------------------------- /playground/pages.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/pages.config.ts -------------------------------------------------------------------------------- /playground/src/App.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/App.vue -------------------------------------------------------------------------------- /playground/src/env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/env.d.ts -------------------------------------------------------------------------------- /playground/src/layouts/default.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/layouts/default.vue -------------------------------------------------------------------------------- /playground/src/layouts/posts.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/layouts/posts.vue -------------------------------------------------------------------------------- /playground/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/main.ts -------------------------------------------------------------------------------- /playground/src/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/manifest.json -------------------------------------------------------------------------------- /playground/src/pages-sub/test/test.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/pages-sub/test/test.vue -------------------------------------------------------------------------------- /playground/src/pages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/pages.json -------------------------------------------------------------------------------- /playground/src/pages/index/disabled.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/pages/index/disabled.vue -------------------------------------------------------------------------------- /playground/src/pages/index/index.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/pages/index/index.vue -------------------------------------------------------------------------------- /playground/src/pages/index/uni-layout.vue: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/pages/index/uni-layout.vue -------------------------------------------------------------------------------- /playground/src/static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/static/logo.png -------------------------------------------------------------------------------- /playground/src/uni-pages.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/uni-pages.d.ts -------------------------------------------------------------------------------- /playground/src/uni.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/src/uni.scss -------------------------------------------------------------------------------- /playground/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/tsconfig.json -------------------------------------------------------------------------------- /playground/uni-pages.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/uni-pages.d.ts -------------------------------------------------------------------------------- /playground/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/playground/vite.config.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/renovate.json -------------------------------------------------------------------------------- /src/constant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/constant.ts -------------------------------------------------------------------------------- /src/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/context.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/scan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/scan.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/__snapshots__/context.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/__snapshots__/context.test.ts.snap -------------------------------------------------------------------------------- /test/__snapshots__/loadPagesJson.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/__snapshots__/loadPagesJson.test.ts.snap -------------------------------------------------------------------------------- /test/__snapshots__/resolveOptions.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/__snapshots__/resolveOptions.test.ts.snap -------------------------------------------------------------------------------- /test/__snapshots__/scanLayouts.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/__snapshots__/scanLayouts.test.ts.snap -------------------------------------------------------------------------------- /test/context.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/context.test.ts -------------------------------------------------------------------------------- /test/fixtures/src/layouts/PascalLayout.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/layouts/camelLayout.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/layouts/default.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/layouts/kebab-layout.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/layouts/no-index/index.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/layouts/the/nesting/layout.vue: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/src/pages.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/fixtures/src/pages.json -------------------------------------------------------------------------------- /test/isTarget.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/isTarget.test.ts -------------------------------------------------------------------------------- /test/loadPagesJson.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/loadPagesJson.test.ts -------------------------------------------------------------------------------- /test/resolveOptions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/resolveOptions.test.ts -------------------------------------------------------------------------------- /test/scanLayouts.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/test/scanLayouts.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uni-helper/vite-plugin-uni-layouts/HEAD/tsconfig.json --------------------------------------------------------------------------------