Skip to content

Commit 1cf7737

Browse files
committed
这是一个用angular来完成的webapp小项目
0 parents  commit 1cf7737

File tree

6,154 files changed

+721790
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,154 files changed

+721790
-0
lines changed

.idea/dictionaries/OD.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/webApp.iml

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 786 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "angular-ui-router",
3+
"description": "State-based routing for AngularJS",
4+
"license": "MIT",
5+
"main": "./release/angular-ui-router.js",
6+
"dependencies": {
7+
"angular": ">= 1.2.0"
8+
},
9+
"ignore": [
10+
"**/.*",
11+
"**/tsconfig.json",
12+
"**/tsconfig.typedoc.json",
13+
"**/webpack.config.js",
14+
"**/node_modules",
15+
"package.json",
16+
"scripts",
17+
"test",
18+
"src"
19+
],
20+
"version": "1.0.8",
21+
"homepage": "https://github.com/angular-ui/angular-ui-router-bower",
22+
"_release": "1.0.8",
23+
"_resolution": {
24+
"type": "version",
25+
"tag": "1.0.8",
26+
"commit": "9fa30f901cf394dbd214f8cc8532c57366caabb7"
27+
},
28+
"_source": "https://github.com/angular-ui/angular-ui-router-bower.git",
29+
"_target": "^1.0.8",
30+
"_originalSource": "angular-ui-router",
31+
"_direct": true
32+
}

bower_components/angular-ui-router/CHANGELOG.md

Lines changed: 1582 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
2+
# Report an Issue
3+
4+
Help us make UI-Router better! If you think you might have found a bug, or some other weirdness, start by making sure
5+
it hasn't already been reported. You can [search through existing issues](https://github.com/angular-ui/ui-router/search?q=wat%3F&type=Issues)
6+
to see if someone's reported one similar to yours.
7+
8+
If not, then [create a plunkr](http://bit.ly/UIR-Plunk) that demonstrates the problem (try to use as little code
9+
as possible: the more minimalist, the faster we can debug it).
10+
11+
Next, [create a new issue](https://github.com/angular-ui/ui-router/issues/new) that briefly explains the problem,
12+
and provides a bit of background as to the circumstances that triggered it. Don't forget to include the link to
13+
that plunkr you created!
14+
15+
**Note**: If you're unsure how a feature is used, or are encountering some unexpected behavior that you aren't sure
16+
is a bug, it's best to talk it out on
17+
[StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router) before reporting it. This
18+
keeps development streamlined, and helps us focus on building great software.
19+
20+
21+
Issues only! |
22+
-------------|
23+
Please keep in mind that the issue tracker is for *issues*. Please do *not* post an issue if you need help or support. Instead, see one of the above-mentioned forums or [IRC](irc://irc.freenode.net/#angularjs). |
24+
25+
#### Purple Labels
26+
A purple label means that **you** need to take some further action.
27+
- ![Not Actionable - Need Info](https://angular-ui.github.io/ui-router/ngdoc_assets/incomplete.png): Your issue is not specific enough, or there is no clear action that we can take. Please clarify and refine your issue.
28+
- ![Plunkr Please](https://angular-ui.github.io/ui-router/ngdoc_assets/example.png): Please [create a plunkr](http://bit.ly/UIR-Plunk)
29+
- ![StackOverflow](https://angular-ui.github.io/ui-router/ngdoc_assets/so.png): We suspect your issue is really a help request, or could be answered by the community. Please ask your question on [StackOverflow](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router). If you determine that is an actual issue, please explain why.
30+
31+
If your issue gets labeled with purple label, no further action will be taken until you respond to the label appropriately.
32+
33+
# Contribute
34+
35+
**(1)** See the **[Developing](#developing)** section below, to get the development version of UI-Router up and running on your local machine.
36+
37+
**(2)** Check out the [roadmap](https://github.com/angular-ui/ui-router/milestones) to see where the project is headed, and if your feature idea fits with where we're headed.
38+
39+
**(3)** If you're not sure, [open an RFC](https://github.com/angular-ui/ui-router/issues/new?title=RFC:%20My%20idea) to get some feedback on your idea.
40+
41+
**(4)** Finally, commit some code and open a pull request. Code & commits should abide by the following rules:
42+
43+
- *Always* have test coverage for new features (or regression tests for bug fixes), and *never* break existing tests
44+
- Commits should represent one logical change each; if a feature goes through multiple iterations, squash your commits down to one
45+
- Make sure to follow the [Angular commit message format](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format) so your change will appear in the changelog of the next release.
46+
- Changes should always respect the coding style of the project
47+
48+
49+
50+
# Developing
51+
52+
UI-Router uses <code>npm</code> and <code>Rollup</code>.
53+
54+
## Fetch the source code
55+
56+
The code for Angular UI-Router is split into two source repositories:
57+
58+
* [UI-Router Core](https://github.com/ui-router/core) (`@uirouter/core` on npm)
59+
* [UI-Router for Angular 1](https://github.com/angular-ui/ui-router) (`@ui-router/angularjs` on npm)
60+
61+
Clone both repositories into directories next to each other.
62+
63+
```
64+
mkdir uirouter
65+
cd uirouter
66+
git clone https://github.com/angular-ui/ui-router.git angularjs
67+
git clone https://github.com/ui-router/core.git core
68+
```
69+
70+
## Install dependencies
71+
72+
Use `npm` to install the development dependencies for each repository.
73+
74+
```
75+
cd core
76+
npm install
77+
cd ../angularjs
78+
npm install
79+
cd ..
80+
```
81+
82+
## Link the directories
83+
84+
This step is necessary if you need to modify any code in `@uirouter/core`.
85+
Using `npm`, link `@uirouter/core` into `@uirouter/angularjs`
86+
87+
```
88+
cd core
89+
npm link
90+
cd ../angularjs
91+
npm link '@uirouter/core'
92+
```
93+
94+
After executing these steps, `@uirouter/angularjs` will be depend on your local copy of `@uirouter/core` instead of the version listed in `package.json`.
95+
96+
## Develop
97+
98+
These scripts may be run in the `angularjs` directory:
99+
100+
* `npm run build`: Compiles TypeScript source
101+
* `npm run package`: Compiles TypeScript source and creates the Rollup bundles.
102+
* `npm test`: Runs the test suite (against Angular 1.2 through 1.5).
103+
* `npm run watch`: Continuously compiles the source and runs the test suite (when either source or tests change).
104+
105+
Scripts of the same name (in the `core` directory) can be used.
106+
107+
* `npm run build`: Compiles `@uirouter/core` TypeScript source
108+
* `npm test`: Runs the `@uirouter/core` test suite
109+
* `npm run watch`: Continuously compiles the source and runs the `@uirouter/core` test suite (when core source or tests change).
110+
111+
If you've followed the [linking instructions](#link-the-directories), it's useful to run both
112+
`npm run watch` tasks (each task from `@uirouter/core` *and* `@uirouter/angularjs`).
113+
This ensures that changes to either `@uirouter/core` and `@uirouter/angularjs` compile successfully and are run against their test suites.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# [UI Router for Angular 1](https://ui-router.github.io/ng1/docs/latest)
2+
3+
#### The de-facto solution to flexible routing in angular 1
4+
5+
<div style="display: flex;">
6+
7+
<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=angular-ui&repo=ui-router&type=fork&count=true&size=medium" frameborder="0" scrolling="0" width="110px" height="20px"></iframe>
8+
<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=angular-ui&repo=ui-router&type=star&count=true&size=medium" frameborder="0" scrolling="0" width="110px" height="20px"></iframe>
9+
[![Build Status](https://travis-ci.org/angular-ui/ui-router.svg?branch=master)](https://travis-ci.org/angular-ui/ui-router)
10+
11+
</div>
12+
13+
14+
Angular UI-Router is a client-side [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application)
15+
routing framework for [AngularJS](http://angularjs.org).
16+
17+
**[View on Github](http://github.com/angular-ui/ui-router) |**
18+
**[Tutorials](https://ui-router.github.io/ng1/tutorials/)** |
19+
**[Guides](https://ui-router.github.io/guide) |**
20+
**[Sample App](http://ui-router.github.io/resources/sampleapp/) |**
21+
**[Wiki](https://github.com/angular-ui/ui-router/wiki) |**
22+
**[FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions)**
23+
24+
#### API Documentation Organization
25+
26+
The documentation is arranged according to API concern, such as `url`, `resolve`, and `core`.
27+
For a list of services and objects that can be injectable, see the [`injectables` section](./injectables.html).
28+
29+
By default, only the public UI-Router API is shown.
30+
To view both public API and the internal APIs, check the "Internal UI-Router API" checkbox.
31+
32+
#### Typescript
33+
34+
UI-Router is written in Typescript.
35+
The API documentation is generated using [TypeDoc](https://github.com/TypeStrong/typedoc).
36+
The documentation reflects the Typescript classes, interfaces, and parameter types information embedded in the source code.
37+
38+
#### Contributing
39+
40+
Angular UI-Router depends on the framework agnostic `@uirouter/core`.
41+
To contribute to the documentation, please submit a PR to either
42+
[@uirouter/angularjs](http://github.com/angular-ui/ui-router)
43+
or
44+
[@uirouter/core](http://github.com/ui-router/core).
45+
To find where a specific piece of documentation is written, follow the links that say:
46+
> _Defined in ui-router/somedir/somefile.ts_
47+
48+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
This issue tracker is for Bug Reports and Feature Requests only.
2+
Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.
3+
4+
This is a:
5+
6+
- [ ] Bug Report
7+
- [ ] Feature Request
8+
- [ ] General Query
9+
10+
My version of UI-Router is: (version)
11+
12+
13+
14+
# Bug Report
15+
16+
#### Current Behavior:
17+
18+
(current behavior here)
19+
20+
#### Expected Behavior:
21+
22+
(expected behavior here)
23+
24+
#### Link to Plunker that reproduces the issue:
25+
26+
http://bit.ly/UIR-Plunk
27+
28+
29+
30+
31+
# Feature Request
32+
33+
(feature request here)
34+
35+
36+
37+
38+
# General Query
39+
40+
Please direct general implementation questions to StackOverflow:
41+
http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router
42+
43+
Please review the Sample Application which highlights common approaches:
44+
https://github.com/ui-router/sample-app-ng1
45+
46+
- [ ] I have already asked my question on StackOverflow and nobody could answer the question
47+
48+
- [ ] I have already reviewed the sample application for examples of common approaches
49+
50+
- [ ] I believe my question can only be answered by the UI-Router maintainers
51+
52+
53+
(general query here)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2013-2015 The AngularUI Team, Karsten Sperling
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# AngularUI Router &nbsp;[![Build Status](https://travis-ci.org/angular-ui/ui-router.svg?branch=master)](https://travis-ci.org/angular-ui/ui-router)
2+
3+
**Note: this is the Angular 1.x source for UI-Router version 1.0. If you are looking for the source for UI-Router
4+
version 0.2.x, it can be found [here](https://github.com/angular-ui/ui-router/tree/legacy)**
5+
6+
---
7+
8+
9+
#### The de-facto solution to flexible routing in angular
10+
---
11+
**[Tutorials](https://ui-router.github.io/tutorials/)** |
12+
**[API Docs](https://ui-router.github.io/docs/latest/)** |
13+
**[Download stable](http://unpkg.com/@uirouter/angularjs@latest/release/angular-ui-router.js)** (or **[Minified](http://unpkg.com/@uirouter/angularjs@latest/release/angular-ui-router.min.js)**) **|**
14+
**[Guide](https://github.com/angular-ui/ui-router/wiki) |**
15+
**[Sample App](http://ui-router.github.io/resources/sampleapp/) |**
16+
**[FAQ](https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions) |**
17+
**[Report an Issue](https://github.com/angular-ui/ui-router/blob/master/CONTRIBUTING.md#report-an-issue) |**
18+
**[Contribute](https://github.com/angular-ui/ui-router/blob/master/CONTRIBUTING.md#contribute) |**
19+
**[Help!](http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router) |**
20+
21+
---
22+
23+
Angular UI-Router is a client-side [Single Page Application](https://en.wikipedia.org/wiki/Single-page_application)
24+
routing framework for [AngularJS](http://angularjs.org).
25+
26+
Routing frameworks for SPAs update the browser's URL as the user navigates through the app. Conversely, this allows
27+
changes to the browser's URL to drive navigation through the app, thus allowing the user to create a bookmark to a
28+
location deep within the SPA.
29+
30+
UI-Router applications are modeled as a hierarchical tree of states. UI-Router provides a
31+
[*state machine*](https://en.wikipedia.org/wiki/Finite-state_machine) to manage the transitions between those
32+
application states in a transaction-like manner.
33+
34+
## Get Started
35+
36+
37+
- [UI-Router for Angular 1](https://ui-router.github.io/ng1)
38+
- [UI-Router for Angular 2](https://ui-router.github.io/ng2)
39+
- [UI-Router for React](https://ui-router.github.io/react)
40+
41+
## Resources
42+
43+
* [In-Depth Guide](https://github.com/angular-ui/ui-router/wiki)
44+
* [Slides comparing ngRoute to ui-router](http://slid.es/timkindberg/ui-router#/)
45+
* [UI-Router Extras / Addons for legacy (0.x)](http://christopherthielen.github.io/ui-router-extras/#/home) (@christopherthielen)
46+
47+
### Videos
48+
49+
* [Introduction Video](https://egghead.io/lessons/angularjs-introduction-ui-router) (egghead.io)
50+
* [Tim Kindberg on Angular UI-Router](https://www.youtube.com/watch?v=lBqiZSemrqg)
51+
* [Activating States](https://egghead.io/lessons/angularjs-ui-router-activating-states) (egghead.io)
52+
* [Learn Angular.js using UI-Router](http://youtu.be/QETUuZ27N0w) (LearnCode.academy)
53+
54+
## Reporting issues and Contributing
55+
56+
Please read our [Contributor guidelines](CONTRIBUTING.md) before reporting an issue or creating a pull request.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"ARTIFACTS": [
3+
"lib",
4+
"lib-esm",
5+
"release",
6+
"package.json"
7+
]
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"angular-ui-router","description":"State-based routing for AngularJS","license":"MIT","main":"./release/angular-ui-router.js","dependencies":{"angular":">= 1.2.0"},"ignore":["**/.*","**/tsconfig.json","**/tsconfig.typedoc.json","**/webpack.config.js","**/node_modules","package.json","scripts","test","src"],"version":"1.0.8"}

0 commit comments

Comments
 (0)