wails-template-vue/.github/README.md

192 lines
6.3 KiB
Markdown
Raw Normal View History

2022-09-05 12:43:04 +08:00
<h1 align="center">Wails Template Vue</h1>
2021-09-08 12:51:13 +08:00
<p align="center">
2022-03-24 08:38:44 +08:00
<img src="./logo.png" height="280" />
2021-09-08 12:51:13 +08:00
</p>
2022-08-26 19:45:49 +08:00
2021-09-08 12:51:13 +08:00
<p align="center">
2021-09-08 12:59:38 +08:00
A Wails template based on Vue and Vue-Router
2021-09-08 12:51:13 +08:00
</p>
2022-08-26 19:45:49 +08:00
2021-09-08 12:51:13 +08:00
<p align="center">
2021-12-04 01:48:48 +08:00
<a href="https://github.com/misitebao/wails-template-vue/blob/main/LICENSE">
2022-08-26 19:45:49 +08:00
<img alt="GitHub" src="https://img.shields.io/github/license/misitebao/wails-template-vue"/>
2021-12-04 01:48:48 +08:00
</a>
<a href="https://github.com/misitebao/standard-repository">
2022-08-26 19:45:49 +08:00
<img alt="GitHub" src="https://cdn.jsdelivr.net/gh/misitebao/standard-repository@main/assets/badge_flat.svg"/>
2021-12-04 01:48:48 +08:00
</a>
<a href="https://github.com/misitebao/wails-template-vue/releases">
2022-08-26 19:45:49 +08:00
<img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/misitebao/wails-template-vue?include_prereleases&sort=semver">
2021-12-04 01:48:48 +08:00
</a>
<a href="https://github.com/wailsapp/awesome-wails">
2022-08-26 19:45:49 +08:00
<img alt="Awesome-Wails" src="https://cdn.jsdelivr.net/gh/sindresorhus/awesome@main/media/badge.svg"/>
2021-12-04 01:48:48 +08:00
</a>
2022-08-26 19:45:49 +08:00
<br/>
<img src="https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-brightgreen?"/>
2021-09-08 12:51:13 +08:00
</p>
2022-08-26 19:45:49 +08:00
<div align="center">
<strong>
<samp>
2021-09-08 12:51:13 +08:00
2022-08-26 19:45:49 +08:00
[English](README.md) · [简体中文](README.zh-Hans.md)
2021-09-08 12:51:13 +08:00
2022-08-26 19:45:49 +08:00
</samp>
</strong>
</div>
2021-09-08 12:51:13 +08:00
<span id="nav-2"></span>
## Table of Contents
<details>
<summary>Click me to Open/Close the directory listing</summary>
- [Table of Contents](#nav-2)
- [Introductions](#nav-3)
- [Official Website](#nav-3-1)
- [Background](#nav-3-2)
- [Graphic Demo](#nav-4)
- [Features](#nav-5)
- [Architecture](#nav-6)
- [Getting Started](#nav-7)
- [Maintainer](#nav-8)
- [Contributors](#nav-9)
- [Community Exchange](#nav-10)
- [Part Of Users](#nav-11)
2022-02-23 23:45:58 +08:00
- [Release History](CHANGELOG.md)
2021-09-08 12:51:13 +08:00
- [Donators](#nav-12)
- [Sponsors](#nav-13)
- [Special Thanks](#nav-14)
- [License](#nav-15)
</details>
<span id="nav-3"></span>
## Introductions
2021-12-13 21:27:48 +08:00
The wails-template-vue template is a Vue template that supports [Wails](https://github.com/wailsapp/wails) programs and provides Router and i18n functions by default.
2021-09-08 12:51:13 +08:00
<span id="nav-3-1"></span>
2021-09-22 08:07:38 +08:00
<!-- ### Official Website -->
2021-09-08 12:51:13 +08:00
<span id="nav-3-2"></span>
### Background
2021-09-08 12:59:38 +08:00
I hope that Vue and its powerful community ecology can be used in Wails applications to develop single-page applications that support multiple routes.
2021-09-08 12:51:13 +08:00
<span id="nav-4"></span>
## Graphic Demo
2022-03-24 08:48:08 +08:00
[![Demo Screenshot](https://cdn.jsdelivr.net/gh/misitebao/wails-template-vue@main/.github/preview.en.png "click to view gif demo")](https://cdn.jsdelivr.net/gh/misitebao/wails-template-vue@main/.github/preview.gif)
2021-09-09 05:31:16 +08:00
2021-09-08 12:51:13 +08:00
<span id="nav-5"></span>
## Features
2021-10-06 01:46:25 +08:00
- Compatible with Windows, MacOS, Linux platforms
2021-09-09 22:47:24 +08:00
- Support single page routing and i18n.
- Built-in Sass preprocessor.
- A consistent UI experience across platforms(Comes with JetbrainsMono font package).
- Comes with a complete API example(Currently under development and testing...).
2021-12-13 21:27:48 +08:00
- Support JavaScript and TypeScript
2021-09-08 12:51:13 +08:00
<span id="nav-6"></span>
2021-09-22 08:07:38 +08:00
<!-- ## Architecture -->
2021-09-08 12:51:13 +08:00
<span id="nav-7"></span>
## Getting Started
2021-09-08 12:20:39 +08:00
### New Project
2021-09-08 12:51:13 +08:00
```
wails init -n [Your Appname] -t https://github.com/misitebao/wails-template-vue
```
2021-09-08 12:30:32 +08:00
flag description:
- n - The name of the application to be created
- t - Template name, supports built-in template names and third-party templates in the form of hyperlinks
2021-12-13 21:27:48 +08:00
After the project is created, the JavaScript template is used by default. You can change the value of the `"frontend:build"` field in the `wails.json` file to `"npm run build -w ts"` to use the TypeScript template.
Note: In order to support TypeScript templates under the existing functions, the front-end part uses the NPM workspace function, so the NPM version must be `>=7.0.0`, please run `npm -v` to check your NPM version.
### Reference document
2021-09-08 12:20:39 +08:00
The front-end part uses Vue Vue-Router and Vue-I18N:
2021-09-22 01:46:29 +08:00
- Vue - Use vue3.x version, please refer to the official [Vue3.x Documents](https://v3.vuejs.org/guide/introduction.html) for specific usage.
2021-09-08 12:25:28 +08:00
- Vue-Router - Use Vue-Router 4.x version, please refer to the official [Vue-Router Documents](https://next.router.vuejs.org/) for specific usage.
2021-09-22 01:43:41 +08:00
- Vue-I18N - Use Vue-I18N 9.x version, please refer to official [Vue-I18N Documents](https://vue-i18n.intlify.dev/) for specific usage.
2021-12-13 21:27:48 +08:00
- TypeScript - Please refer to official [TypeScript Documents](https://www.typescriptlang.org/) for specific usage.
2021-09-08 12:20:39 +08:00
Then you can refer to the official [Wails document](https://wails.io) to start developing your application🤞.
2021-09-08 12:20:39 +08:00
<span id="nav-8"></span>
2021-09-08 12:51:13 +08:00
## Maintainer
Thanks to the maintainers of these projects:
<a href="https://github.com/misitebao"><img src="https://github.com/misitebao.png" width="40" height="40" alt="misitebao" title="misitebao"/></a>
<details>
2022-01-05 19:52:30 +08:00
<summary>Click me to Open/Close the maintainer listing</summary>
2021-09-08 12:51:13 +08:00
- [Misitebao](https://github.com/misitebao) - Project author, full stack engineer.
</details>
<span id="nav-9"></span>
## Contributors
2021-12-06 01:20:14 +08:00
Thank you to all the contributors who participated in the development of wails-template-vue. [Contributors](https://github.com/misitebao/wails-template-vue/graphs/contributors)
2022-09-06 20:06:04 +08:00
<a href="https://github.com/eighteenzheng"><img src="https://github.com/eighteenzheng.png" width="40" height="40" alt="eighteenzheng" title="eighteenzheng"/></a>
2022-05-06 12:30:34 +08:00
<a href="https://github.com/daoif"><img src="https://github.com/daoif.png" width="40" height="40" alt="daoif" title="daoif"/></a>
2021-09-08 12:51:13 +08:00
<span id="nav-10"></span>
## Community Exchange
- [Github Discussions](https://github.com/wailsapp/wails/discussions) - The official Github communication community of the Wails project
2021-09-08 12:59:38 +08:00
- [Wails Slack](https://invite.slack.golangbridge.org/) - Wails official communication channel
- [Twitter](https://twitter.com/wailsapp) - Wails official Twitter account
2021-09-08 12:51:13 +08:00
Chinese Community:
2021-09-12 13:23:08 +08:00
- <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=utlUvDwtcNG5knHBLwVdMvG39WeHh7oj&jump_from=webapi">QQ Group: 1067173054</a> - QQ Chinese Community Exchange Group
2021-09-08 12:51:13 +08:00
<span id="nav-11"></span>
## Part Of Users
2021-09-08 12:30:32 +08:00
- [Wails API Demos](https://github.com/misitebao/wails-api-demos) - A sample program for exploring Wails API, inspired by [Electron API Demos](https://github.com/electron/electron-api-demos)
2021-11-06 20:53:09 +08:00
- [Hayate](https://github.com/misitebao/hayate) - Windows application installation boot program implemented using Wails.
2021-09-08 12:30:32 +08:00
2021-09-08 12:51:13 +08:00
<span id="nav-12"></span>
2021-09-22 08:07:38 +08:00
<!-- ## Donators -->
2021-09-08 12:51:13 +08:00
<span id="nav-13"></span>
2021-09-22 08:07:38 +08:00
<!-- ## Sponsors -->
2021-09-08 12:51:13 +08:00
<span id="nav-14"></span>
2021-09-22 08:07:38 +08:00
<!-- ## Special Thanks -->
2021-09-08 12:51:13 +08:00
<span id="nav-15"></span>
## License
2022-01-05 19:52:30 +08:00
[License MIT](../LICENSE)