-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature(template): add basic vue-typescript-admin-template code
- Loading branch information
0 parents
commit 1f00c90
Showing
107 changed files
with
12,283 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not ie <= 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# http://editorconfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Indentation override for js(x), ts(x) and vue files | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
# Indentation override for css related files | ||
[*.{css,styl,scss,less,sass}] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
# Indentation override for html files | ||
[*.html] | ||
indent_size = 2 | ||
indent_style = space | ||
|
||
# Trailing space override for markdown file | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Indentation override for config files | ||
[*.{json,yml}] | ||
indent_size = 2 | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VUE_APP_MOCK_API=https://easy-mock.com/mock/5950a2419adc231f356a6636/vue-admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
"comma-dangle": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
education, socio-economic status, nationality, personal appearance, race, | ||
religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) | ||
|
||
[homepage]: https://www.contributor-covenant.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# Git Commit Message Convention | ||
|
||
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular). | ||
## TL;DR | ||
|
||
Messages must be matched by the following regex: | ||
|
||
``` js | ||
/^(Revert: )?(Feature|Fix|Docs|Improve|Config|Example|Refactor|Style|Test|Build|CI)(\(.+\))?: .{1,80}/ | ||
``` | ||
|
||
## Commit Message Format | ||
|
||
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**: | ||
|
||
```text | ||
<type>(<scope>): <subject> | ||
<BLANK LINE> | ||
<body> | ||
<BLANK LINE> | ||
<footer> | ||
``` | ||
|
||
The **header** is mandatory and the **scope** of the header is optional. | ||
|
||
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier | ||
to read on GitHub as well as in various git tools. | ||
|
||
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any. | ||
|
||
Samples: (even more [samples](https://github.com/Armour/vue-typescript-admin-template/commits/master)) | ||
|
||
```text | ||
Docs(changelog): update changelog to beta.5 | ||
``` | ||
|
||
```text | ||
Feature($browser): onUrlChange event (popstate/hashchange/polling) | ||
Added new event to $browser: | ||
- forward popstate event if available | ||
- forward hashchange event if popstate not available | ||
- do polling when neither popstate nor hashchange available | ||
Breaks $browser.onHashChange, which was removed (use onUrlChange instead) | ||
``` | ||
|
||
```text | ||
Fix(release): need to depend on latest rxjs and zone.js | ||
The version in our package.json gets copied to the one we publish, and users need the latest of these. | ||
Closes #123, #245, #992 | ||
BREAKING CHANGE: isolate scope bindings definition has changed and | ||
the inject option for the directive controller injection was removed. | ||
To migrate the code follow the example below: | ||
Before: | ||
scope: { | ||
myAttr: 'attribute', | ||
myBind: 'bind', | ||
myExpression: 'expression', | ||
myEval: 'evaluate', | ||
myAccessor: 'accessor' | ||
} | ||
After: | ||
scope: { | ||
myAttr: '@', | ||
myBind: '@', | ||
myExpression: '&', | ||
// myEval - usually not useful, but in cases where the expression is assignable, you can use '=' | ||
myAccessor: '=' // in directive's template change myAccessor() to myAccessor | ||
} | ||
The removed `inject` wasn't generaly useful for directives so there should be no code using it. | ||
``` | ||
|
||
### Revert | ||
|
||
If the commit reverts a previous commit, it should begin with `Revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted. | ||
|
||
### Type | ||
|
||
Must be one of the following: | ||
|
||
* **Build**: Changes that affect the build system or external dependencies (example scopes: gulp, npm, yarn) | ||
* **CI**: Changes to CI related configuration files and scripts (example scopes: travis, circle, browserstack) | ||
* **Config**: Changes to other configuration files (example scopes: webpack, babel, docker) | ||
* **Docs**: Documentation only changes (example scopes: readme, changelog) | ||
* **Example**: Changes for example code | ||
* **Feature**: A new feature | ||
* **Fix**: A bug fix | ||
* **Improve**: Backwards-compatible enhancement changes | ||
* **Refactor**: A code change that neither fixes a bug nor adds a feature | ||
* **Style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
* **Test**: Changes for testing code | ||
|
||
If the prefix is `Feature` or `Fix`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog. | ||
|
||
### Scope | ||
|
||
The scope could be anything specifying place of the commit change. For example `core`, `compiler`, `ssr`, `v-model`, `transition` etc... | ||
|
||
### Subject | ||
|
||
The subject contains succinct description of the change: | ||
|
||
* use the imperative, present tense: "change" not "changed" nor "changes" | ||
* don't capitalize the first letter | ||
* no dot (.) at the end | ||
|
||
### Body | ||
|
||
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes". | ||
The body should include the motivation for the change and contrast this with previous behavior. | ||
|
||
### Footer | ||
|
||
The footer should contain any information about **Breaking Changes** and is also the place to | ||
reference GitHub issues that this commit **Closes**. | ||
|
||
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this. | ||
|
||
A detailed explanation can be found in this [document](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Contributing | ||
|
||
## Code of Conduct | ||
|
||
Help us keep vue-typescript-admin-template open and inclusive. Please read and follow the [Code of Conduct](https://github.com/Armour/vue-typescript-admin-template/blob/master/.github/CODE_OF_CONDUCT.md). | ||
|
||
## Found a Bug | ||
|
||
If you find a bug in the source code, you can help us by [submitting an issue](#submitting-an-issue) to our [GitHub Repository](https://github.com/Armour/vue-typescript-admin-template). Even better, you can [submit a Pull Request](#submitting-a-pull-request) with a fix. | ||
|
||
## Missing a Feature | ||
|
||
You can *request* a new feature by [submitting an issue](#submitting-an-issue) to our GitHub Repository. If you would like to *implement* a new feature, please submit an issue with a proposal for your work first, to be sure that we can use it. Please consider what kind of change it is: | ||
|
||
* For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed. This will also allow us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project. | ||
|
||
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submitting-a-pull-request). | ||
|
||
## Submission Guidelines | ||
|
||
### Submitting an Issue | ||
|
||
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available. | ||
|
||
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs, we will systematically ask you to provide a minimal reproduction scenario. Having a live, reproducible scenario gives us a wealth of important information without going back & forth to you with additional questions. | ||
|
||
We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it. | ||
|
||
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced. | ||
|
||
You can file new issues by filling out the [new issue form](https://github.com/Armour/vue-typescript-admin-template/issues/new). | ||
|
||
### Submitting a Pull Request | ||
|
||
Before you submit your Pull Request (PR) consider the following guidelines: | ||
|
||
1. Search [GitHub](https://github.com/Armour/vue-typescript-admin-template/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort. | ||
|
||
1. Fork this repo. | ||
|
||
1. Make your changes in a new git branch. | ||
|
||
```shell | ||
git checkout -b my-new-feature master | ||
``` | ||
|
||
1. Commit your changes using a descriptive commit message that follows our [commit message convention](#commit-message-convention). Adherence to these conventions is necessary because release notes are automatically generated from these messages. | ||
|
||
```shell | ||
git commit -am 'Add some feature' | ||
``` | ||
|
||
1. Push your branch. | ||
|
||
```shell | ||
git push origin my-new-feature | ||
``` | ||
|
||
1. Send a pull request :D | ||
|
||
That's it! Thank you for your contribution! | ||
#### After your pull request is merged | ||
After your pull request is merged, you can safely delete your branch and pull the changes | ||
from the main (upstream) repository: | ||
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows: | ||
```shell | ||
git push origin --delete my-new-feature | ||
``` | ||
* Check out the master branch: | ||
```shell | ||
git checkout master -f | ||
``` | ||
* Delete the local branch: | ||
```shell | ||
git branch -D my-new-feature | ||
``` | ||
* Update your master with the latest upstream version: | ||
```shell | ||
git pull | ||
``` | ||
## Commit Message Convention | ||
We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that are easy to follow when looking through the **project history**. But also, we use the git commit messages to **generate the change log**. | ||
Please read and follow the [Commit Message Format](https://github.com/Armour/vue-typescript-admin-template/blob/master/.github/COMMIT_CONVENTION.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION. | ||
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. | ||
--> | ||
|
||
<!-- Please search GitHub for a similar issue or PR before submitting --> | ||
|
||
# I'm submitting a | ||
|
||
<!-- | ||
E.g. | ||
bug report, | ||
feature request, | ||
performance issue, | ||
regression (a behavior that used to work and stopped working in a new release), | ||
documentation issue or request, | ||
or others... (please describe) | ||
--> | ||
|
||
## Current behavior | ||
|
||
<!-- Describe how the issue manifests. --> | ||
|
||
## Expected behavior | ||
|
||
<!-- Describe what the desired behavior would be. --> | ||
|
||
## Minimal reproduction of the problem with instructions | ||
|
||
<!-- | ||
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via github repo or similar tools. | ||
--> | ||
|
||
## What is the motivation / use case for changing the behavior | ||
|
||
<!-- Describe the motivation or the concrete use case. --> | ||
|
||
## Environment | ||
|
||
<!-- Anything may be useful? Platform, Operating system version, IDE, package manager, HTTP server, ... --> |
Oops, something went wrong.