Skip to content

Commit

Permalink
Merge pull request #1 from jooy2/master
Browse files Browse the repository at this point in the history
sync latest vutron
  • Loading branch information
lnrdnl authored Jun 6, 2024
2 parents 3eb3f9b + 8668c26 commit c5e378d
Show file tree
Hide file tree
Showing 21 changed files with 2,215 additions and 1,452 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/app-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: ['18', '20']
node_version: ['18', '20', '22.1']
os: [windows-latest, macos-latest, ubuntu-latest]

steps:
Expand All @@ -43,7 +43,7 @@ jobs:
cache-dependency-path: '**/package-lock.json'

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: npm-cache
with:
path: |
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

# copy and replace string index.md file
- name: Copy and replace string index.md file
run: cp ../README.md ./src/index.md
- name: Copy image asset (logo)
run: cp ../src/renderer/public/images/vutron-logo.webp ./src/public
- name: Copy image asset (sample)
run: cp ../.github/resources/vutron-sample.webp ./src/public
# - name: Copy and replace string index.md file
# run: cp ../README.md ./src/index.md
# - name: Copy image asset (logo)
# run: cp ../src/renderer/public/images/vutron-logo.webp ./src/public
# - name: Copy image asset (sample)
# run: cp ../.github/resources/vutron-sample.webp ./src/public

# cache node_modules
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: npm-cache
with:
path: |
Expand All @@ -52,19 +52,19 @@ jobs:
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install

- name: Find and Replace (logo)
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "src/renderer/public/images/vutron-logo.webp"
replace: "public/vutron-logo.webp"
regex: false

- name: Find and Replace (sample)
uses: jacobtomlinson/gha-find-replace@v3
with:
find: ".github/resources/vutron-sample.webp"
replace: "public/vutron-sample.webp"
regex: false
# - name: Find and Replace (logo)
# uses: jacobtomlinson/gha-find-replace@v3
# with:
# find: "src/renderer/public/images/vutron-logo.webp"
# replace: "public/vutron-logo.webp"
# regex: false
#
# - name: Find and Replace (sample)
# uses: jacobtomlinson/gha-find-replace@v3
# with:
# find: ".github/resources/vutron-sample.webp"
# replace: "public/vutron-sample.webp"
# regex: false

# run build script
- name: Build VitePress site
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"Vue.volar"
]
}
863 changes: 457 additions & 406 deletions docs/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"node": ">=18.0.0"
},
"dependencies": {
"vitepress": "^1.0.0-rc.40",
"vitepress-sidebar": "^1.18.6",
"vue": "^3.4.15"
"vitepress": "^1.1.4",
"vitepress-sidebar": "^1.22.0",
"vue": "^3.4.26"
}
}
32 changes: 32 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: home

title: Vutron
titleTemplate: Quick Start Templates for Vite + Vue 3 + Electron

hero:
name: Vutron
text: Quick Start Templates for Vite + Vue 3 + Electron
tagline: <strong>Vutron</strong> is a preconfigured template for developing `Electron` cross-platform desktop apps. It uses `Vue 3` and allows you to build a fast development environment with little effort.
actions:
- theme: brand
text: Getting Started
link: /installation-and-build/getting-started
- theme: alt
text: GitHub
link: https://github.com/jooy2/vutron
image:
src: /icon.png
alt: Vue

features:
- icon: <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.03628 7.87818C4.75336 5.83955 6.15592 3.95466 8.16899 3.66815L33.6838 0.0367403C35.6969 -0.24977 37.5581 1.1706 37.841 3.20923L42.9637 40.1218C43.2466 42.1604 41.8441 44.0453 39.831 44.3319L14.3162 47.9633C12.3031 48.2498 10.4419 46.8294 10.159 44.7908L5.03628 7.87818Z" fill="url(#paint0_linear_1287_1214)"/><path d="M6.85877 7.6188C6.71731 6.59948 7.41859 5.65703 8.42512 5.51378L33.9399 1.88237C34.9465 1.73911 35.8771 2.4493 36.0186 3.46861L41.1412 40.3812C41.2827 41.4005 40.5814 42.343 39.5749 42.4862L14.0601 46.1176C13.0535 46.2609 12.1229 45.5507 11.9814 44.5314L6.85877 7.6188Z" fill="white"/><path d="M33.1857 14.9195L25.8505 34.1576C25.6991 34.5547 25.1763 34.63 24.9177 34.2919L12.3343 17.8339C12.0526 17.4655 12.3217 16.9339 12.7806 16.9524L22.9053 17.3607C22.9698 17.3633 23.0344 17.3541 23.0956 17.3337L32.5088 14.1992C32.9431 14.0546 33.3503 14.4878 33.1857 14.9195Z" fill="url(#paint1_linear_1287_1214)"/><path d="M27.0251 12.5756L19.9352 15.0427C19.8187 15.0832 19.7444 15.1986 19.7546 15.3231L20.3916 23.063C20.4066 23.2453 20.5904 23.3628 20.7588 23.2977L22.7226 22.5392C22.9064 22.4682 23.1021 22.6138 23.0905 22.8128L22.9102 25.8903C22.8982 26.0974 23.1093 26.2436 23.295 26.1567L24.4948 25.5953C24.6808 25.5084 24.892 25.6549 24.8795 25.8624L24.5855 30.6979C24.5671 31.0004 24.9759 31.1067 25.1013 30.8321L25.185 30.6487L29.4298 17.8014C29.5008 17.5863 29.2968 17.3809 29.0847 17.454L27.0519 18.1547C26.8609 18.2205 26.6675 18.0586 26.6954 17.8561L27.3823 12.8739C27.4103 12.6712 27.2163 12.5091 27.0251 12.5756Z" fill="url(#paint2_linear_1287_1214)"/><defs><linearGradient id="paint0_linear_1287_1214" x1="6.48163" y1="1.9759" x2="39.05" y2="48.2064" gradientUnits="userSpaceOnUse"><stop stop-color="#49C7FF"/><stop offset="1" stop-color="#BD36FF"/></linearGradient><linearGradient id="paint1_linear_1287_1214" x1="11.8848" y1="16.4266" x2="26.7246" y2="31.4177" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="paint2_linear_1287_1214" x1="21.8138" y1="13.7046" x2="26.2464" y2="28.8069" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset="0.0833333" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs></svg>
title: Powerful web application development templates
details: Vutron supports cross-platform, multi-language, layouts and theme, and style frameworks.
- icon: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="160px" height="160px"><path fill="#424e5c" d="M4.5 6.5H75.5V73.5H4.5z"/><path fill="#afc5d8" d="M75,7v66H5V7H75 M76,6H4v68h72V6L76,6z"/><path fill="#afc5d8" d="M4 6H76V18H4z"/><path fill="#bae0bd" d="M25.6 43H54.400000000000006V45H25.6z" transform="rotate(-69.666 39.998 43.999)"/><path fill="#bae0bd" d="M27.9 54.4L16 44 27.9 33.6 29.2 35.1 19 44 29.2 52.9zM52.2 54.5L50.9 53 61 44.1 50.9 35.1 52.2 33.6 64 44.1z"/></svg>
title: Rapid development through hot-reload
details: Reduce initial project setup time with maximum feature support for developers.
- icon: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="64px" height="64px"><circle cx="16" cy="17" r="5" fill="#ed0049"/><path fill="#ed0049" d="M23,31H9v0c0-3.866,3.134-7,7-7h0C19.866,24,23,27.134,23,31L23,31z"/><path fill="#0f518c" d="M19,4c0-1.657-1.343-3-3-3s-3,1.343-3,3c0,0.885,0.391,1.672,1,2.222V10h4V6.222 C18.609,5.672,19,4.885,19,4z"/><path fill="#0f518c" d="M7.061,8.318c-1.171-1.171-3.071-1.171-4.243,0s-1.171,3.071,0,4.243 c0.626,0.626,1.459,0.906,2.278,0.864l2.672,2.672l2.828-2.828l-2.672-2.672C7.967,9.777,7.686,8.944,7.061,8.318z"/><path fill="#0f518c" d="M24.879,8.318c1.171-1.171,3.071-1.171,4.243,0s1.171,3.071,0,4.243 c-0.626,0.626-1.459,0.906-2.278,0.864l-2.672,2.672l-2.828-2.828l2.672-2.672C23.972,9.777,24.253,8.944,24.879,8.318z"/><path fill="#0f518c" d="M24.879,27.218c1.171,1.171,3.071,1.171,4.243,0c1.171-1.171,1.171-3.071,0-4.243 c-0.626-0.626-1.459-0.906-2.278-0.864l-2.672-2.672l-2.828,2.828l2.672,2.672C23.972,25.759,24.253,26.592,24.879,27.218z"/><g><path fill="#0f518c" d="M7.061,27.218c-1.171,1.171-3.071,1.171-4.243,0c-1.171-1.171-1.171-3.071,0-4.243 c0.626-0.626,1.459-0.906,2.278-0.864l2.672-2.672l2.828,2.828L7.925,24.94C7.967,25.759,7.686,26.592,7.061,27.218z"/></g></svg>
title: Reliable maintenance support
details: There are many real-world use cases, and we have fast technical support.
---
Loading

0 comments on commit c5e378d

Please sign in to comment.