Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit b293036

Browse files
Initial commit
0 parents  commit b293036

Some content is hidden

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

63 files changed

+18875
-0
lines changed

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# compiled schematics
2+
schematics/library-starter/*.js
3+
schematics/library-starter/*.js.map
4+
schematics/library-starter/*.d.ts
5+
6+
# compiled output
7+
/dist
8+
/tmp
9+
/out-tsc
10+
# Only exists if Bazel was run
11+
/bazel-out
12+
13+
# dependencies
14+
/node_modules
15+
16+
# profiling files
17+
chrome-profiler-events.json
18+
speed-measure-plugin.json
19+
20+
# IDEs and editors
21+
/.idea
22+
.project
23+
.classpath
24+
.c9/
25+
*.launch
26+
.settings/
27+
*.sublime-workspace
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/settings.json
32+
!.vscode/tasks.json
33+
!.vscode/launch.json
34+
!.vscode/extensions.json
35+
.history/*
36+
37+
# misc
38+
/.sass-cache
39+
/connect.lock
40+
/coverage
41+
/libpeerconnection.log
42+
npm-debug.log
43+
yarn-error.log
44+
testem.log
45+
/typings
46+
47+
# System Files
48+
.DS_Store
49+
Thumbs.db

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
> Thank you for considering contributing to our project. Your help if very welcome!
4+
5+
When contributing, it's better to first discuss the change you wish to make via issue,
6+
email, or any other method with the owners of this repository before making a change.
7+
8+
All members of our community are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
9+
Please make sure you are welcoming and friendly in all of our spaces.
10+
11+
## Getting started
12+
13+
In order to make your contribution please make a fork of the repository. After you've pulled
14+
the code, follow these steps to kick start the development:
15+
16+
1. Run `npm ci` to install dependencies
17+
2. Run `npm start` to launch demo project where you could test your changes
18+
3. Use following commands to ensure code quality
19+
20+
```
21+
npm run lint
22+
npm run build
23+
npm run test
24+
```
25+
26+
## Pull Request Process
27+
28+
1. We follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/)
29+
in our commit messages, i.e. `feat(core): improve typing`
30+
2. Update [README.md](README.md) to reflect changes related to public API and everything relevant
31+
3. Make sure you cover all code changes with unit tests
32+
4. When you are ready, create Pull Request of your fork into original repository

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Vladimir Potekhin <[email protected]>
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 all
13+
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 THE
21+
SOFTWARE.

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# [WIP] Geolocation API for Angular
2+
3+
[![angular-open-source-starter](https://img.shields.io/badge/made%20with-angular--open--source--starter-d81676?logo=angular)](https://github.com/TinkoffCreditSystems/angular-open-source-starter)
4+
5+
This is a library for declarative use of [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) with Angular 6+.
6+
7+
## How to use
8+
9+
## Supported nodes
10+
11+
## Tokens
12+
13+
## TODO

angular.json

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"demo": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "projects/demo",
10+
"sourceRoot": "projects/demo/src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"baseHref": "/",
17+
"deployUrl": "/",
18+
"outputPath": "dist/demo/browser",
19+
"index": "projects/demo/src/index.html",
20+
"main": "projects/demo/src/main.browser.ts",
21+
"polyfills": "projects/demo/src/polyfills.ts",
22+
"tsConfig": "tsconfig.json",
23+
"aot": false,
24+
"assets": [
25+
{
26+
"glob": "**/*",
27+
"input": "projects/demo/src/assets/",
28+
"output": "./assets/"
29+
},
30+
"projects/demo/src/favicon.ico"
31+
],
32+
"styles": ["projects/demo/src/styles.css"],
33+
"scripts": []
34+
},
35+
"configurations": {
36+
"production": {
37+
"optimization": true,
38+
"outputHashing": "all",
39+
"sourceMap": false,
40+
"extractCss": true,
41+
"namedChunks": false,
42+
"aot": true,
43+
"extractLicenses": true,
44+
"vendorChunk": false,
45+
"buildOptimizer": true,
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "2mb",
50+
"maximumError": "5mb"
51+
}
52+
]
53+
}
54+
}
55+
},
56+
"serve": {
57+
"builder": "@angular-devkit/build-angular:dev-server",
58+
"options": {
59+
"browserTarget": "demo:build"
60+
},
61+
"configurations": {
62+
"production": {
63+
"browserTarget": "demo:build:production"
64+
}
65+
}
66+
},
67+
"server": {
68+
"builder": "@angular-devkit/build-angular:server",
69+
"options": {
70+
"outputPath": "dist/demo/server",
71+
"main": "projects/demo/src/main.server.ts",
72+
"tsConfig": "projects/demo/tsconfig.server.json"
73+
}
74+
},
75+
"test": {
76+
"builder": "@angular-devkit/build-angular:karma",
77+
"options": {
78+
"main": "projects/demo/src/test.ts",
79+
"tsConfig": "projects/demo/tsconfig.spec.json",
80+
"karmaConfig": "projects/demo/karma.conf.js",
81+
"codeCoverage": true,
82+
"browsers": "ChromeHeadless"
83+
}
84+
},
85+
"lint": {
86+
"builder": "@angular-devkit/build-angular:tslint",
87+
"options": {
88+
"tsConfig": ["tsconfig.json"],
89+
"exclude": ["**/node_modules/**"]
90+
}
91+
}
92+
}
93+
},
94+
"geolocation": {
95+
"projectType": "library",
96+
"root": "projects/geolocation",
97+
"sourceRoot": "projects/geolocation/src",
98+
"architect": {
99+
"build": {
100+
"builder": "@angular-devkit/build-ng-packagr:build",
101+
"options": {
102+
"tsConfig": "projects/geolocation/tsconfig.lib.json",
103+
"project": "projects/geolocation/ng-package.json"
104+
}
105+
},
106+
"test": {
107+
"builder": "@angular-devkit/build-angular:karma",
108+
"options": {
109+
"main": "projects/geolocation/src/test.ts",
110+
"tsConfig": "projects/geolocation/tsconfig.spec.json",
111+
"karmaConfig": "projects/geolocation/karma.conf.js",
112+
"codeCoverage": true,
113+
"browsers": "ChromeHeadless"
114+
}
115+
},
116+
"lint": {
117+
"builder": "@angular-devkit/build-angular:tslint",
118+
"options": {
119+
"tsConfig": [
120+
"projects/geolocation/tsconfig.lib.json",
121+
"projects/geolocation/tsconfig.spec.json"
122+
],
123+
"exclude": ["**/node_modules/**"]
124+
}
125+
}
126+
}
127+
}
128+
},
129+
"defaultProject": "geolocation"
130+
}

0 commit comments

Comments
 (0)