create-valaxy 0.15.11 → 0.15.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +2 -2
  3. package/template-addon/index.ts +1 -0
  4. package/template-addon/node/index.ts +8 -0
  5. package/template-addon/package.json +12 -0
  6. package/template-blog/.dockerignore +2 -0
  7. package/template-blog/.editorconfig +9 -0
  8. package/template-blog/.github/workflows/gh-pages.yml +42 -0
  9. package/template-blog/.vscode/extensions.json +11 -0
  10. package/template-blog/.vscode/settings.json +16 -0
  11. package/template-blog/Dockerfile +18 -0
  12. package/template-blog/_gitignore +20 -0
  13. package/template-blog/_npmrc +3 -0
  14. package/template-blog/components/README.md +7 -0
  15. package/template-blog/layouts/README.md +3 -0
  16. package/template-blog/locales/README.md +3 -0
  17. package/template-blog/locales/en.yml +4 -0
  18. package/template-blog/locales/zh-CN.yml +4 -0
  19. package/template-blog/netlify.toml +16 -0
  20. package/template-blog/package.json +21 -0
  21. package/template-blog/pages/404.md +3 -0
  22. package/template-blog/pages/about/index.md +15 -0
  23. package/template-blog/pages/about/site.md +7 -0
  24. package/template-blog/pages/archives/index.md +5 -0
  25. package/template-blog/pages/categories/index.md +9 -0
  26. package/template-blog/pages/links/index.md +9 -0
  27. package/template-blog/pages/posts/hello-valaxy.md +20 -0
  28. package/template-blog/pages/tags/index.md +7 -0
  29. package/template-blog/public/_headers +3 -0
  30. package/template-blog/public/favicon.svg +33 -0
  31. package/template-blog/public/pwa-192x192.png +0 -0
  32. package/template-blog/public/pwa-512x512.png +0 -0
  33. package/template-blog/public/safari-pinned-tab.svg +41 -0
  34. package/template-blog/site.config.ts +120 -0
  35. package/template-blog/styles/README.md +8 -0
  36. package/template-blog/styles/css-vars.scss +1 -0
  37. package/template-blog/styles/index.scss +1 -0
  38. package/template-blog/tsconfig.json +21 -0
  39. package/template-blog/valaxy.config.ts +51 -0
  40. package/template-blog/vercel.json +8 -0
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import S from"node:process";import a from"node:fs";import i from"node:path";import{fileURLToPath as U}from"node:url";import{execa as k}from"execa";import{red as j,dim as m,gray as J,blue as y,yellow as u,bold as C,green as g,cyan as f,reset as x}from"kolorist";import B from"minimist";import v from"prompts";const G="0.15.11";function D(e){return e?.trim().replace(/\/+$/g,"")}function H(e){const o=a.readdirSync(e);return o.length===0||o.length===1&&o[0]===".git"}function I(e,o){a.statSync(e).isDirectory()?K(e,o):a.copyFileSync(e,o)}function K(e,o){a.mkdirSync(o,{recursive:!0});for(const n of a.readdirSync(e)){const c=i.resolve(e,n),p=i.resolve(o,n);I(c,p)}}function Y(e){if(console.log(`
1
+ import S from"node:process";import a from"node:fs";import i from"node:path";import{fileURLToPath as U}from"node:url";import{execa as k}from"execa";import{red as j,dim as m,gray as J,blue as y,yellow as u,bold as C,green as g,cyan as f,reset as x}from"kolorist";import B from"minimist";import v from"prompts";const G="0.15.12";function D(e){return e?.trim().replace(/\/+$/g,"")}function H(e){const o=a.readdirSync(e);return o.length===0||o.length===1&&o[0]===".git"}function I(e,o){a.statSync(e).isDirectory()?K(e,o):a.copyFileSync(e,o)}function K(e,o){a.mkdirSync(o,{recursive:!0});for(const n of a.readdirSync(e)){const c=i.resolve(e,n),p=i.resolve(o,n);I(c,p)}}function Y(e){if(console.log(`
2
2
  ${j("Removing")} ${m(e)}`),!!a.existsSync(e))for(const o of a.readdirSync(e))o!==".git"&&a.rmSync(i.resolve(e,o),{recursive:!0,force:!0})}function P(e){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(e)}function q(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function Q(e){if(!e)return;const o=e.split(" ")[0].split("/");return{name:o[0],version:o[1]}}const b={name:"starter",display:"Starter",repo:"https://github.com/valaxyjs/valaxy-theme-starter"};async function W(e){const o=b.name;let n=e.themeName||o;if(!n){const{theme:p}=await v({type:"text",name:"theme",message:"Theme name: valaxy-theme-",initial:o});n=p||o}const c=`valaxy-theme-${n.trim()}`;return console.log(` ${m("npx")} ${J("degit")} ${y(b.repo)} ${u(c)}`),await k("npx",["degit",b.repo,c],{stdio:"inherit"}),console.log(),console.log(` ${C("Check it")}:`),console.log(),console.log(`- Change ${C("author")} name in ${u("LICENSE")} & ${g("package.json")} & ${y(".github")}`),console.log(`- Change ${y("valaxy.config.ts")} theme: ${u("starter")} to ${f(`${n}`)}`),console.log(`- Rename ${u(`valaxy-theme-${n}`)} to ${f(`valaxy-theme-${n}`)}`),console.log(),console.log(` ${f("\u2728")}`),console.log(),`valaxy-theme-${n}`}const X={_gitignore:".gitignore",_npmrc:".npmrc"},A=[{name:"blog",display:"Blog",desc:"For Most Users",message:"Project name:",initial:"valaxy-blog",color:f},{name:"theme",display:"Theme",desc:"For Theme Developers",message:"Theme name: valaxy-theme-",initial:"starter",prefix:"valaxy-theme-",color:g,customInit:async e=>W(e).catch(o=>{console.error(o)})},{name:"addon",display:"Addon",desc:"For Addon Developers",message:"Addon name: valaxy-addon-",initial:"template",prefix:"valaxy-addon-",color:u}],O=A.map(e=>e.name),T=B(S.argv.slice(2)),E=S.cwd(),Z="valaxy-blog",ee=U(import.meta.url);async function oe(){console.log(),console.log(` ${C("\u{1F30C} Valaxy")} ${y(`v${G}`)}`),console.log();const e=D(T._[0]),o=T.template||T.t;let n=e||Z;const c=()=>n==="."?i.basename(i.resolve()):n;let p;const{template:r}=await v({type:o&&O.includes(o)?null:"select",name:"template",message:typeof o=="string"&&!O.includes(o)?x(`"${o}" isn't a valid template. Please choose from below: `):x("Select a type:"),initial:0,choices:A.map(t=>{const s=t.color;return{title:s(t.display||t.name)+m(` - ${t.desc}`),value:t}})});try{p=await v([{type:e?null:"text",name:"projectName",message:x(r.message),initial:r.initial,onState:t=>{n=D(r.prefix?r.prefix+t.value:t.value)||r.initial}},{type:()=>!a.existsSync(n)||H(n)?null:"confirm",name:"overwrite",message:()=>`${n==="."?"Current directory":`Target directory "${n}"`} is not empty. Remove existing files and continue?`},{type:(t,{overwrite:s})=>{if(s===!1)throw new Error(`${j("\u2716")} Operation cancelled`);return null},name:"overwriteChecker"},{type:()=>P(c())?null:"text",name:"packageName",message:x("Package name:"),initial:()=>q(c()),validate:t=>P(t)||"Invalid package.json name"}],{onCancel:()=>{throw new Error(`${j("\u2716")} Operation cancelled`)}})}catch(t){console.log(t.message);return}const{projectName:$,overwrite:z}=p,L=r.prefix?r.prefix+$:$,l=i.join(E,L);if(z?Y(l):a.existsSync(l)||a.mkdirSync(l,{recursive:!0}),r.customInit)await r.customInit({themeName:$});else{const t=i.resolve(ee,"../..",`template-${r.name}`),s=(d,h)=>{const _=i.join(l,X[d]??d);h?a.writeFileSync(_,h):I(i.join(t,d),_)},M=a.readdirSync(t);for(const d of M.filter(h=>h!=="package.json"))s(d);const N=JSON.parse(a.readFileSync(i.join(t,"package.json"),"utf-8"));N.name=$||c(),s("package.json",`${JSON.stringify(N,null,2)}
3
3
  `)}console.log(` ${m("\u{1F4C1}")} ${m(l)}`),console.log(),console.log(m(" Scaffolding project in ")+n+m(" ..."));const F=Q(S.env.npm_config_user_agent),w=F?F.name:"npm",R=i.relative(E,l);if(console.log(g(` Done.
4
4
  `)),r.name==="addon")return;const{yes:V}=await v({type:"confirm",name:"yes",initial:"Y",message:"Install and start it now?"});if(V){const{agent:t}=await v({name:"agent",type:"select",message:"Choose the agent",choices:["npm","yarn","pnpm"].map(s=>({value:s,title:s})),initial:2});if(!t)return;await k(t,["install"],{stdio:"inherit",cwd:l}),await k(t,["run","dev"],{stdio:"inherit",cwd:l})}else{switch(console.log(m(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-valaxy",
3
3
  "type": "module",
4
- "version": "0.15.11",
4
+ "version": "0.15.12",
5
5
  "description": "Create Starter Template for Valaxy",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -21,7 +21,7 @@
21
21
  "files": [
22
22
  "bin",
23
23
  "dist",
24
- "template-*"
24
+ "template-*/**/*"
25
25
  ],
26
26
  "engines": {
27
27
  "node": "^18.0.0 || >=20.0.0"
@@ -0,0 +1 @@
1
+ export * from './node'
@@ -0,0 +1,8 @@
1
+ import { defineValaxyAddon } from 'valaxy'
2
+ import pkg from '../package.json'
3
+
4
+ export const addonTemplate = defineValaxyAddon(options => ({
5
+ name: pkg.name,
6
+ enable: true,
7
+ options,
8
+ }))
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "valaxy-addon-template",
3
+ "version": "0.0.1",
4
+ "description": "Template for Valaxy Addon.",
5
+ "repository": "https://github.com/YunYouJun/valaxy",
6
+ "keywords": [
7
+ "valaxy",
8
+ "addon",
9
+ "template"
10
+ ],
11
+ "main": "index.ts"
12
+ }
@@ -0,0 +1,2 @@
1
+ node_modules
2
+ dist
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
@@ -0,0 +1,42 @@
1
+ name: GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ # The branch where the project source code resides
7
+ # 项目源代码所在的分支
8
+ - main
9
+ - master
10
+ - valaxy
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ${{ matrix.os }}
15
+
16
+ strategy:
17
+ matrix:
18
+ node-version: [16.x]
19
+ os: [ubuntu-latest]
20
+ fail-fast: false
21
+
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+
25
+ - name: Use Node.js ${{ matrix.node-version }}
26
+ uses: actions/setup-node@v2
27
+ with:
28
+ node-version: ${{ matrix.node-version }}
29
+ registry-url: https://registry.npmjs.org/
30
+
31
+ - name: 📦 Install Dependencies
32
+ run: npm i
33
+
34
+ - name: 🌌 Build Valaxy Blog
35
+ run: npm run build
36
+
37
+ - name: 🪤 Deploy to GitHub Pages
38
+ uses: peaceiris/actions-gh-pages@v3
39
+ with:
40
+ github_token: ${{ secrets.GITHUB_TOKEN }}
41
+ publish_dir: ./dist
42
+ force_orphan: true
@@ -0,0 +1,11 @@
1
+ {
2
+ "recommendations": [
3
+ "antfu.iconify",
4
+ "antfu.unocss",
5
+ "csstools.postcss",
6
+ "dbaeumer.vscode-eslint",
7
+ "vue.volar",
8
+ "lokalise.i18n-ally",
9
+ "YunYouJun.valaxy"
10
+ ]
11
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "cSpell.words": ["valaxy", "valaxyjs"],
3
+ "i18n-ally.sourceLanguage": "en",
4
+ "i18n-ally.keystyle": "nested",
5
+ "i18n-ally.localesPaths": "locales",
6
+ "i18n-ally.sortKeys": true,
7
+ "prettier.enable": true,
8
+ "editor.codeActionsOnSave": {
9
+ "source.fixAll.eslint": true
10
+ },
11
+ "editor.formatOnSave": false,
12
+ "files.associations": {
13
+ "*.css": "postcss"
14
+ },
15
+ "svg.preview.background": "editor"
16
+ }
@@ -0,0 +1,18 @@
1
+ FROM node:16-alpine as build-stage
2
+
3
+ WORKDIR /app
4
+ RUN corepack enable
5
+
6
+ COPY .npmrc package.json ./
7
+ RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
8
+ pnpm install
9
+
10
+ COPY . .
11
+ RUN pnpm build
12
+
13
+ FROM nginx:stable-alpine as production-stage
14
+
15
+ COPY --from=build-stage /app/dist /usr/share/nginx/html
16
+ EXPOSE 80
17
+
18
+ CMD ["nginx", "-g", "daemon off;"]
@@ -0,0 +1,20 @@
1
+ # valaxy
2
+
3
+ valaxy-fuse-list.json
4
+
5
+ # vite-ssg
6
+
7
+ .vite-ssg-dist
8
+ .vite-ssg-temp
9
+
10
+ temp/
11
+
12
+ .DS_Store
13
+ *.local
14
+ dist
15
+ dist-ssr
16
+ node_modules
17
+ .idea/
18
+ *.log
19
+
20
+ components.d.ts
@@ -0,0 +1,3 @@
1
+ # for pnpm
2
+ shamefully-hoist=true
3
+ strict-peer-dependencies=false
@@ -0,0 +1,7 @@
1
+ # Components
2
+
3
+ Components in this dir will be auto-registered and on-demand, powered by [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components).
4
+
5
+ ## Icons
6
+
7
+ You can use icons from almost any icon sets by the power of [Iconify](https://iconify.design/).
@@ -0,0 +1,3 @@
1
+ # layouts
2
+
3
+ You can override valaxy/theme layouts here.
@@ -0,0 +1,3 @@
1
+ # locales
2
+
3
+ You can custom i18n here.
@@ -0,0 +1,4 @@
1
+ # you can custom locale
2
+ intro:
3
+ desc: Valaxy Template
4
+ hi: Hello, Valaxy!
@@ -0,0 +1,4 @@
1
+ # 你可以像这样自定义 i18n
2
+ intro:
3
+ desc: Valaxy 模版
4
+ hi: 你好,Valaxy
@@ -0,0 +1,16 @@
1
+ [build.environment]
2
+ NODE_VERSION = "16"
3
+
4
+ [build]
5
+ publish = "dist"
6
+ command = "npm run build"
7
+
8
+ [[redirects]]
9
+ from = "/*"
10
+ to = "/index.html"
11
+ status = 200
12
+
13
+ [[headers]]
14
+ for = "/manifest.webmanifest"
15
+ [headers.values]
16
+ Content-Type = "application/manifest+json"
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "valaxy-blog",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "private": true,
6
+ "scripts": {
7
+ "build": "npm run build:ssg",
8
+ "build:spa": "valaxy build",
9
+ "build:ssg": "valaxy build --ssg",
10
+ "dev": "valaxy",
11
+ "rss": "valaxy rss",
12
+ "serve": "vite preview"
13
+ },
14
+ "dependencies": {
15
+ "valaxy": "0.15.12",
16
+ "valaxy-theme-yun": "0.15.12"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^5.2.2"
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ ---
2
+ layout: 404
3
+ ---
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: 关于我
3
+ ---
4
+
5
+ I am developing [Valaxy](https://github.com/YunYouJun/valaxy) - Next Generation Static Blog Framework.
6
+
7
+ If you like it, you can sponsor me in [GitHub](https://github.com/sponsors/YunYouJun) or [sponsors.yunyoujun.cn](https://sponsors.yunyoujun.cn).
8
+
9
+ ---
10
+
11
+ 我正在开发 [Valaxy](https://github.com/YunYouJun/valaxy) - 下一代静态博客框架。
12
+
13
+ 如果你喜欢它,你可以在 [GitHub](https://github.com/sponsors/YunYouJun) 或 [sponsors.yunyoujun.cn](https://sponsors.yunyoujun.cn) 赞助我。
14
+
15
+ Check out the [Valaxy | GitHub](https://github.com/YunYouJun/valaxy) for more details.
@@ -0,0 +1,7 @@
1
+ ---
2
+ title: 关于站点
3
+ ---
4
+
5
+ Valaxy + valaxy-theme-yun Demo Site
6
+
7
+ - Default Theme: [valaxy-theme-yun](https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy-theme-yun/)
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: archives
3
+ nav: false
4
+ comment: false
5
+ ---
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: categories
3
+ nav: false
4
+ toc: false
5
+ icon: i-ri-folder-2-line
6
+ # You can custom title
7
+ # title: 云游的小分类
8
+ # comment: false
9
+ ---
@@ -0,0 +1,9 @@
1
+ ---
2
+ title: 我的小伙伴们
3
+ keywords: 链接
4
+ description: 云游的小伙伴们
5
+ links: https://www.yunyoujun.cn/friends/links.json
6
+ random: true
7
+ ---
8
+
9
+ <YunLinks :links="frontmatter.links" :random="frontmatter.random" />
@@ -0,0 +1,20 @@
1
+ ---
2
+ title: Hello, Valaxy!
3
+ date: 2022-04-01
4
+ updated: 2022-04-01
5
+ categories: Valaxy 笔记
6
+ tags:
7
+ - valaxy
8
+ - 笔记
9
+ top: 1
10
+ ---
11
+
12
+ ## Valaxy
13
+
14
+ Next Generation Static Blog Framework.
15
+
16
+ Write your first post!
17
+
18
+ ## Usage
19
+
20
+ Modify `valaxy.config.ts` to custom your blog.
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: tags
3
+ # title: 云游的小标签
4
+ icon: i-ri-price-tag-3-line
5
+ nav: false
6
+ # comment: false
7
+ ---
@@ -0,0 +1,3 @@
1
+ /assets/*
2
+ cache-control: max-age=31536000
3
+ cache-control: immutable
@@ -0,0 +1,33 @@
1
+ <svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_757_102259" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="97" y="222" width="830" height="647">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M729.48 756.469C729.478 756.471 729.475 756.473 729.472 756.475C729.606 756.361 729.625 756.36 729.48 756.469ZM690.046 767.723C685.618 766.845 680.868 765.982 675.803 765.143C634.63 758.32 576.843 753.701 512.383 753.12C447.923 752.538 390.063 756.114 348.774 762.193C343.694 762.941 338.929 763.717 334.486 764.515C338.914 765.394 343.664 766.256 348.729 767.095C389.902 773.918 447.689 778.537 512.149 779.119C576.609 779.7 634.469 776.124 675.758 770.045C680.838 769.298 685.603 768.521 690.046 767.723ZM295.261 752.552C295.118 752.441 295.137 752.442 295.269 752.558C295.266 752.556 295.264 752.554 295.261 752.552ZM295.052 775.769C295.054 775.768 295.057 775.766 295.06 775.764C294.926 775.877 294.907 775.878 295.052 775.769ZM729.263 779.68C729.266 779.682 729.268 779.684 729.271 779.686C729.413 779.798 729.395 779.796 729.263 779.68ZM511.932 803.118C642.542 804.296 748.572 788.686 748.756 768.252C748.941 747.819 643.21 730.299 512.6 729.121C381.99 727.942 275.96 743.552 275.776 763.986C275.591 784.42 381.322 801.939 511.932 803.118Z" fill="url(#paint0_linear_757_102259)"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M729.48 756.469C729.478 756.471 729.475 756.473 729.472 756.475C729.606 756.361 729.625 756.36 729.48 756.469ZM690.046 767.723C685.618 766.845 680.868 765.982 675.803 765.143C634.63 758.32 576.843 753.701 512.383 753.12C447.923 752.538 390.063 756.114 348.774 762.193C343.694 762.941 338.929 763.717 334.486 764.515C338.914 765.394 343.664 766.256 348.729 767.095C389.902 773.918 447.689 778.537 512.149 779.119C576.609 779.7 634.469 776.124 675.758 770.045C680.838 769.298 685.603 768.521 690.046 767.723ZM295.261 752.552C295.118 752.441 295.137 752.442 295.269 752.558C295.266 752.556 295.264 752.554 295.261 752.552ZM295.052 775.769C295.054 775.768 295.057 775.766 295.06 775.764C294.926 775.877 294.907 775.878 295.052 775.769ZM729.263 779.68C729.266 779.682 729.268 779.684 729.271 779.686C729.413 779.798 729.395 779.796 729.263 779.68ZM511.932 803.118C642.542 804.296 748.572 788.686 748.756 768.252C748.941 747.819 643.21 730.299 512.6 729.121C381.99 727.942 275.96 743.552 275.776 763.986C275.591 784.42 381.322 801.939 511.932 803.118Z" fill="url(#paint1_linear_757_102259)"/>
5
+ <mask id="mask1_757_102259" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="97" y="121" width="830" height="748">
6
+ <g style="mix-blend-mode:darken">
7
+ <ellipse cx="512" cy="766" rx="102.062" ry="102.062" transform="rotate(-15 512 766)" fill="#9038FF"/>
8
+ </g>
9
+ <rect x="-0.183013" y="-0.683013" width="579" height="159" transform="matrix(0.5 -0.866025 -0.866025 -0.5 635.881 702.112)" fill="#D9D9D9" stroke="black" stroke-linejoin="round"/>
10
+ <rect x="387.183" y="702.612" width="579" height="159" transform="rotate(-120 387.183 702.612)" fill="#D9D9D9" stroke="black" stroke-linejoin="round"/>
11
+ </mask>
12
+ <g mask="url(#mask1_757_102259)">
13
+ <rect x="-15" y="222" width="1071" height="979" fill="#D9D9D9"/>
14
+ </g>
15
+ </mask>
16
+ <g mask="url(#mask0_757_102259)">
17
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1024 0H0V1024H1024V0ZM666 766C666 851.052 597.052 920 512 920C426.948 920 358 851.052 358 766C358 680.949 426.948 612 512 612C597.052 612 666 680.949 666 766ZM610.584 739.585C625.173 794.031 592.862 849.996 538.416 864.585C483.969 879.174 428.005 846.863 413.416 792.416C398.827 737.969 431.138 682.005 485.584 667.416C540.031 652.827 595.995 685.138 610.584 739.585Z" fill="url(#paint2_diamond_757_102259)"/>
18
+ </g>
19
+ <defs>
20
+ <linearGradient id="paint0_linear_757_102259" x1="472.734" y1="695.005" x2="499.213" y2="841.207" gradientUnits="userSpaceOnUse">
21
+ <stop stop-color="#9444FB"/>
22
+ <stop offset="1" stop-color="#4D08A4"/>
23
+ </linearGradient>
24
+ <linearGradient id="paint1_linear_757_102259" x1="543.866" y1="836.077" x2="534.684" y2="776.831" gradientUnits="userSpaceOnUse">
25
+ <stop stop-opacity="0.19"/>
26
+ <stop offset="1" stop-opacity="0"/>
27
+ </linearGradient>
28
+ <radialGradient id="paint2_diamond_757_102259" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(510 767) rotate(-90) scale(1452.5)">
29
+ <stop stop-color="#8300EF"/>
30
+ <stop offset="1" stop-color="#3B82F6"/>
31
+ </radialGradient>
32
+ </defs>
33
+ </svg>
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+ <metadata>
8
+ Created by potrace 1.11, written by Peter Selinger 2001-2013
9
+ </metadata>
10
+ <g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
11
+ fill="#000000" stroke="none">
12
+ <path d="M2916 6015 c-93 -57 -173 -108 -178 -113 -6 -6 7 -36 33 -78 23 -38
13
+ 86 -141 139 -229 54 -88 135 -221 180 -295 46 -74 94 -155 108 -180 14 -25 29
14
+ -52 35 -60 7 -12 -9 -45 -62 -130 -39 -63 -85 -140 -103 -170 -18 -30 -117
15
+ -194 -222 -365 -104 -170 -199 -326 -210 -346 -12 -19 -61 -102 -111 -183 -49
16
+ -81 -101 -166 -115 -189 -14 -23 -39 -64 -55 -90 -17 -27 -77 -126 -134 -220
17
+ -57 -95 -127 -210 -156 -257 -194 -315 -325 -533 -325 -541 0 -5 -4 -9 -10 -9
18
+ -5 0 -10 -4 -10 -9 0 -5 -55 -98 -121 -207 -247 -404 -403 -660 -416 -684 -8
19
+ -14 -58 -97 -112 -185 l-98 -160 -189 -2 c-104 -1 -225 -2 -269 -2 l-80 -1 1
20
+ -210 c0 -116 4 -213 8 -218 11 -11 6107 -9 6114 2 8 13 8 406 0 419 -4 7 -88
21
+ 10 -265 9 l-259 -2 -50 77 c-27 43 -54 87 -60 98 -6 11 -62 103 -124 205 -62
22
+ 102 -120 197 -129 212 -9 16 -85 142 -170 280 -85 139 -160 262 -165 273 -6
23
+ 11 -13 22 -16 25 -3 3 -30 46 -59 95 -30 50 -102 169 -161 265 -59 96 -240
24
+ 393 -402 660 -163 267 -371 609 -463 760 -92 151 -194 318 -225 370 -31 52
25
+ -101 167 -155 255 l-97 160 27 50 c16 27 32 55 36 61 5 5 38 59 74 120 36 60
26
+ 69 116 74 124 5 8 75 122 155 253 81 131 144 242 141 247 -4 7 -114 76 -183
27
+ 115 -10 6 -52 32 -95 58 -42 27 -81 46 -87 42 -8 -5 -94 -140 -140 -219 -19
28
+ -33 -221 -365 -246 -404 -15 -22 -18 -18 -111 135 -52 87 -123 203 -157 258
29
+ -67 108 -67 110 -111 184 -16 28 -34 51 -40 50 -5 0 -86 -47 -179 -104z m739
30
+ -1642 c319 -526 519 -854 637 -1046 43 -70 78 -130 78 -133 0 -2 5 -10 10 -17
31
+ 6 -7 69 -109 140 -227 72 -118 134 -222 139 -230 5 -8 55 -89 111 -180 56 -91
32
+ 105 -172 110 -180 9 -14 52 -84 270 -445 54 -88 135 -221 180 -295 46 -74 91
33
+ -148 100 -165 9 -16 31 -53 48 -81 18 -28 32 -54 32 -57 0 -3 -403 -6 -895 -5
34
+ l-895 0 0 81 c-1 45 -1 439 -1 875 l0 792 -37 1 c-57 1 -344 1 -374 0 l-27 -1
35
+ 0 -832 c0 -458 0 -852 0 -875 l-1 -42 -895 1 c-492 0 -895 3 -895 5 0 9 115
36
+ 198 122 201 5 2 8 7 8 12 0 5 23 46 51 92 28 46 78 128 112 183 33 55 70 116
37
+ 82 135 12 19 132 215 265 435 133 220 266 438 295 485 65 105 206 338 220 362
38
+ 6 10 172 284 370 608 198 325 387 635 420 690 33 55 62 100 65 100 3 0 73
39
+ -111 155 -247z"/>
40
+ </g>
41
+ </svg>
@@ -0,0 +1,120 @@
1
+ import { defineSiteConfig } from 'valaxy'
2
+
3
+ export default defineSiteConfig({
4
+ url: 'https://valaxy.site/',
5
+ lang: 'zh-CN',
6
+ title: 'Valaxy Theme Yun',
7
+ author: {
8
+ name: '云游君',
9
+ },
10
+ description: 'Valaxy Theme Yun Preview.',
11
+ social: [
12
+ {
13
+ name: 'RSS',
14
+ link: '/atom.xml',
15
+ icon: 'i-ri-rss-line',
16
+ color: 'orange',
17
+ },
18
+ {
19
+ name: 'QQ 群 1050458482',
20
+ link: 'https://qm.qq.com/cgi-bin/qm/qr?k=kZJzggTTCf4SpvEQ8lXWoi5ZjhAx0ILZ&jump_from=webapi',
21
+ icon: 'i-ri-qq-line',
22
+ color: '#12B7F5',
23
+ },
24
+ {
25
+ name: 'GitHub',
26
+ link: 'https://github.com/YunYouJun',
27
+ icon: 'i-ri-github-line',
28
+ color: '#6e5494',
29
+ },
30
+ {
31
+ name: '微博',
32
+ link: 'https://weibo.com/jizhideyunyoujun',
33
+ icon: 'i-ri-weibo-line',
34
+ color: '#E6162D',
35
+ },
36
+ {
37
+ name: '豆瓣',
38
+ link: 'https://www.douban.com/people/yunyoujun/',
39
+ icon: 'i-ri-douban-line',
40
+ color: '#007722',
41
+ },
42
+ {
43
+ name: '网易云音乐',
44
+ link: 'https://music.163.com/#/user/home?id=247102977',
45
+ icon: 'i-ri-netease-cloud-music-line',
46
+ color: '#C20C0C',
47
+ },
48
+ {
49
+ name: '知乎',
50
+ link: 'https://www.zhihu.com/people/yunyoujun/',
51
+ icon: 'i-ri-zhihu-line',
52
+ color: '#0084FF',
53
+ },
54
+ {
55
+ name: '哔哩哔哩',
56
+ link: 'https://space.bilibili.com/1579790',
57
+ icon: 'i-ri-bilibili-line',
58
+ color: '#FF8EB3',
59
+ },
60
+ {
61
+ name: '微信公众号',
62
+ link: 'https://cdn.yunyoujun.cn/img/about/white-qrcode-and-search.jpg',
63
+ icon: 'i-ri-wechat-2-line',
64
+ color: '#1AAD19',
65
+ },
66
+ {
67
+ name: 'Twitter',
68
+ link: 'https://twitter.com/YunYouJun',
69
+ icon: 'i-ri-twitter-line',
70
+ color: '#1da1f2',
71
+ },
72
+ {
73
+ name: 'Telegram Channel',
74
+ link: 'https://t.me/elpsycn',
75
+ icon: 'i-ri-telegram-line',
76
+ color: '#0088CC',
77
+ },
78
+ {
79
+ name: 'E-Mail',
80
+ link: 'mailto:me@yunyoujun.cn',
81
+ icon: 'i-ri-mail-line',
82
+ color: '#8E71C1',
83
+ },
84
+ {
85
+ name: 'Travelling',
86
+ link: 'https://www.travellings.cn/go.html',
87
+ icon: 'i-ri-train-line',
88
+ color: 'var(--va-c-text)',
89
+ },
90
+ ],
91
+
92
+ search: {
93
+ enable: false,
94
+ },
95
+
96
+ sponsor: {
97
+ enable: true,
98
+ title: '我很可爱,请给我钱!',
99
+ methods: [
100
+ {
101
+ name: '支付宝',
102
+ url: 'https://cdn.yunyoujun.cn/img/donate/alipay-qrcode.jpg',
103
+ color: '#00A3EE',
104
+ icon: 'i-ri-alipay-line',
105
+ },
106
+ {
107
+ name: 'QQ 支付',
108
+ url: 'https://cdn.yunyoujun.cn/img/donate/qqpay-qrcode.png',
109
+ color: '#12B7F5',
110
+ icon: 'i-ri-qq-line',
111
+ },
112
+ {
113
+ name: '微信支付',
114
+ url: 'https://cdn.yunyoujun.cn/img/donate/wechatpay-qrcode.jpg',
115
+ color: '#2DC100',
116
+ icon: 'i-ri-wechat-pay-line',
117
+ },
118
+ ],
119
+ },
120
+ })
@@ -0,0 +1,8 @@
1
+ # styles
2
+
3
+ You can override styles here.
4
+
5
+ - New file `index.scss` to write global css.
6
+ - New file `css-vars.scss` to set css vars.
7
+
8
+ More info see <https://valaxy.site/guide/custom/styles>.
@@ -0,0 +1 @@
1
+ // you can custom css vars here
@@ -0,0 +1 @@
1
+ // you can custom css here
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "jsx": "preserve",
5
+ "lib": ["DOM", "ESNext"],
6
+ "baseUrl": ".",
7
+ "module": "ESNext",
8
+ "moduleResolution": "node",
9
+ "paths": {
10
+ "~/*": ["./*"]
11
+ },
12
+ "resolveJsonModule": true,
13
+ "strict": true,
14
+ "strictNullChecks": true,
15
+ "noUnusedLocals": true,
16
+ "esModuleInterop": true,
17
+ "forceConsistentCasingInFileNames": true,
18
+ "skipLibCheck": true
19
+ },
20
+ "exclude": ["dist", "node_modules"]
21
+ }
@@ -0,0 +1,51 @@
1
+ import { defineValaxyConfig } from 'valaxy'
2
+ import type { UserThemeConfig } from 'valaxy-theme-yun'
3
+
4
+ // add icons what you will need
5
+ const safelist = [
6
+ 'i-ri-home-line',
7
+ ]
8
+
9
+ /**
10
+ * User Config
11
+ */
12
+ export default defineValaxyConfig<UserThemeConfig>({
13
+ // site config see site.config.ts
14
+
15
+ theme: 'yun',
16
+
17
+ themeConfig: {
18
+ banner: {
19
+ enable: true,
20
+ title: '云游君的小站',
21
+ cloud: {
22
+ enable: true,
23
+ },
24
+ },
25
+
26
+ pages: [
27
+ {
28
+ name: '我的小伙伴们',
29
+ url: '/links/',
30
+ icon: 'i-ri-genderless-line',
31
+ color: 'dodgerblue',
32
+ },
33
+ {
34
+ name: '喜欢的女孩子',
35
+ url: '/girls/',
36
+ icon: 'i-ri-women-line',
37
+ color: 'hotpink',
38
+ },
39
+ ],
40
+
41
+ footer: {
42
+ since: 2016,
43
+ beian: {
44
+ enable: true,
45
+ icp: '苏ICP备17038157号',
46
+ },
47
+ },
48
+ },
49
+
50
+ unocss: { safelist },
51
+ })
@@ -0,0 +1,8 @@
1
+ {
2
+ "rewrites": [
3
+ {
4
+ "source": "/:path*",
5
+ "destination": "/index.html"
6
+ }
7
+ ]
8
+ }