Skip to content

Commit c8e1bb9

Browse files
authored
Merge pull request #12 from hatnote/dev
version 17.03.01
2 parents 74b0bc3 + 6c09876 commit c8e1bb9

Some content is hidden

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

45 files changed

+1956
-1403
lines changed

README.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,3 @@
11
# Monumental
22

33
Reasonator for monuments
4-
5-
## Server
6-
7-
A small python server providing authorization for edit actions on Wikidata.
8-
9-
### Local setup
10-
11-
1. Install python requirements
12-
13-
```bash
14-
pip install -r requirements.txt
15-
```
16-
17-
2. Setup config.yaml
18-
19-
Copy config.default.yaml to config.local.yaml. You may need to add oauth consumer info, which you can apply for [here](https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose). If you need a set of keys for testing purposes (running on localhost:5000), you can email me at <stephen.laporte@gmail.com>.
20-
21-
3. Run the dev server
22-
23-
```bash
24-
python monumental/server.py
25-
```
26-
27-
Test it out:
28-
29-
- Login: http://localhost:5000/login
30-
- A simple Wikidata API query: http://localhost:5000/api?action=query&list=random&rnnamespace=0&rnlimit=10
31-
- Get an edit token (with authorization): http://localhost:5000/api?action=query&meta=tokens&use_auth=true
32-
33-
See [here](https://www.wikidata.org/w/api.php) for full Wikidata API docs.
34-
35-
### License
36-
37-
Copyright (c) 2017, Stephen LaPorte
38-
39-
Redistribution and use in source and binary forms, with or without
40-
modification, are permitted provided that the following conditions are
41-
met:
42-
43-
* Redistributions of source code must retain the above copyright
44-
notice, this list of conditions and the following disclaimer.
45-
46-
* Redistributions in binary form must reproduce the above
47-
copyright notice, this list of conditions and the following
48-
disclaimer in the documentation and/or other materials provided
49-
with the distribution.
50-
51-
* The names of the contributors may not be used to endorse or
52-
promote products derived from this software without specific
53-
prior written permission.
54-
55-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
56-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
57-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
58-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
59-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
60-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
61-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
62-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
63-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
64-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
65-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

monumental/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
A small python server providing authorization for edit actions on Wikidata.
2+
3+
### Local setup
4+
5+
1. Install python requirements
6+
7+
```bash
8+
pip install -r requirements.txt
9+
```
10+
11+
2. Setup config.yaml
12+
13+
Copy config.default.yaml to config.local.yaml. You may need to add oauth consumer info, which you can apply for [here](https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose). If you need a set of keys for testing purposes (running on localhost:5000), you can email me at <stephen.laporte@gmail.com>.
14+
15+
3. Run the dev server
16+
17+
```bash
18+
python monumental/server.py
19+
```
20+
21+
Test it out:
22+
23+
- Login: http://localhost:5000/login
24+
- A simple Wikidata API query: http://localhost:5000/api?action=query&list=random&rnnamespace=0&rnlimit=10
25+
- Get an edit token (with authorization): http://localhost:5000/api?action=query&meta=tokens&use_auth=true
26+
27+
See [here](https://www.wikidata.org/w/api.php) for full Wikidata API docs.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "monumental",
3-
"version": "0.10.0",
3+
"version": "17.03.01",
44
"private": true,
55
"description": "Monumental app",
66
"main": "src/index.js",
77
"scripts": {
88
"start-live": "webpack-dev-server --content-base src --progress --colors",
99
"start": "webpack --watch --content-base src --progress --colors",
1010
"build": "webpack --content-base src --progress",
11+
"build-dev": "set NODE_ENV=dev&&webpack --content-base src --progress",
1112
"test": "echo OK"
1213
},
1314
"devDependencies": {

src/components/index.js

100644100755
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,28 @@ import main from './main/main';
22
import dashboard from './main/dashboard/dashboard';
33
import list from './main/list/list';
44
import map from './main/map/map';
5+
56
import monument from './main/monument/monument';
7+
import location from './main/monument/components/location';
8+
import nativeName from './main/monument/components/native-name';
9+
import url from './main/monument/components/url';
10+
11+
import toolbar from './toolbar/toolbar';
12+
13+
import category from './main/games/category/games-category';
614

715
export default () => {
816
main();
917
dashboard();
1018
list();
1119
map();
20+
1221
monument();
22+
location();
23+
nativeName();
24+
url();
25+
26+
toolbar();
27+
28+
category();
1329
};

0 commit comments

Comments
 (0)