Skip to content

Commit 0f3004c

Browse files
authored
Merge pull request #19 from KnowWhereGraph/develop
Release 1.0.0
2 parents e0a5c9f + b8ca537 commit 0f3004c

10 files changed

+47
-38
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The stage environment uses the staging deployments SPARQL endpoint. It also redi
2323

2424
### Production Environment
2525

26-
The prod environment uses the production SPARQL endpoint and redirects to the production server.
26+
The production environment is generally used as the `stko` environment. The stko environment uses the production SPARQL endpoint and redirects to the production server.
2727

2828
### Custom
2929

node-browser/angular.json

+24-15
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
},
4242
"configurations": {
4343
"production": {
44+
"buildOptimizer": false,
45+
"optimization": false,
46+
"vendorChunk": true,
47+
"extractLicenses": false,
48+
"sourceMap": true,
49+
"namedChunks": true,
4450
"fileReplacements": [
4551
{
4652
"replace": "src/environments/environment.ts",
@@ -51,16 +57,27 @@
5157
{
5258
"type": "initial",
5359
"maximumWarning": "500kb",
54-
"maximumError": "2mb"
60+
"maximumError": "5mb"
5561
},
5662
{
5763
"type": "anyComponentStyle",
5864
"maximumWarning": "2kb",
59-
"maximumError": "2mb"
65+
"maximumError": "5mb"
6066
}
6167
],
6268
"outputHashing": "all"
6369
},
70+
"stko": {
71+
"buildOptimizer": true,
72+
"optimization": false,
73+
"extractLicenses": false,
74+
"fileReplacements": [
75+
{
76+
"replace": "src/environments/environment.ts",
77+
"with": "src/environments/environment.prod.ts"
78+
}
79+
]
80+
},
6481
"stage": {
6582
"buildOptimizer": false,
6683
"optimization": false,
@@ -95,34 +112,26 @@
95112
"serve": {
96113
"builder": "@angular-devkit/build-angular:dev-server",
97114
"configurations": {
98-
"prod": {
115+
"production": {
99116
"browserTarget": "node-browser:build:production"
100117
},
101118
"local": {
102119
"browserTarget": "node-browser:build:local"
103120
},
104121
"stage": {
105122
"browserTarget": "node-browser:build:stage"
123+
},
124+
"stko": {
125+
"browserTarget": "node-browser:build:stko"
106126
}
107127
},
108-
"defaultConfiguration": "prod"
128+
"defaultConfiguration": "stko"
109129
},
110130
"extract-i18n": {
111131
"builder": "@angular-devkit/build-angular:extract-i18n",
112132
"options": {
113133
"browserTarget": "node-browser:build"
114134
}
115-
},
116-
"test": {
117-
"builder": "@angular-devkit/build-angular:karma",
118-
"options": {
119-
"polyfills": "src/polyfills.ts",
120-
"tsConfig": "tsconfig.spec.json",
121-
"inlineStyleLanguage": "scss",
122-
"assets": ["src/favicon.ico", "src/assets"],
123-
"styles": ["src/styles.scss"],
124-
"scripts": []
125-
}
126135
}
127136
}
128137
}

node-browser/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ services:
33
build: '.'
44
volumes:
55
- ./dist/:/app/dist/
6-
entrypoint: ["ng","build","--configuration=production"]
6+
entrypoint: ["ng","build","--configuration=stko"]

node-browser/package-lock.json

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node-browser/src/app/browse/browse.component.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@
2121
<a
2222
*ngIf="outbound_info.predicate_label"
2323
class="pred-link"
24+
target="_blank"
2425
href="{{ outbound_info.predicate_kwg_link }}"
2526
>{{ outbound_info.predicate_label }}</a
2627
>
2728
<a
2829
*ngIf="!outbound_info.predicate_label"
2930
class="pred-link"
31+
target="_blank"
3032
href="{{ outbound_info.predicate_kwg_link }}"
3133
>{{ outbound_info.predicate_name }}</a
3234
>
3335
<a href="{{ outbound_info.predicate_link }}"
36+
target="_blank"
3437
><mat-icon [inline]="true" class="browse-open-icon table"
3538
>open_in_new</mat-icon
3639
></a
@@ -48,10 +51,11 @@
4851
}}</span></span
4952
>
5053
<span *ngIf="!outbound_relation.isPredicate"
51-
><a class="obj-link" href="{{ outbound_relation.localURI }}">{{
54+
><a class="obj-link" target="_blank" href="{{ outbound_relation.localURI }}">{{
5255
outbound_relation.name
5356
}}</a
5457
><a href="{{ outbound_relation.link }}"
58+
target="_blank"
5559
><mat-icon [inline]="true" class="browse-open-icon table"
5660
>open_in_new</mat-icon
5761
></a
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const environment = {
22
baseAddress: 'localhost/',
33
graphEndpoint: 'https://localhost/sparql',
4-
production: false,
54
};
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const environment = {
22
baseAddress: 'https://stko-kwg.geog.ucsb.edu/',
33
graphEndpoint: 'https://stko-kwg.geog.ucsb.edu/sparql',
4-
production: true,
54
};
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export const environment = {
22
baseAddress: 'https://staging.knowwheregraph.org/',
33
graphEndpoint: 'https://staging.knowwheregraph.org/sparql',
4-
production: false,
54
};

node-browser/src/environments/environment.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
export const environment = {
66
baseAddress: 'https://staging.knowwheregraph.org/',
7-
graphEndpoint: 'https://staging.knowwheregraph.org/sparql',
8-
production: false,
7+
graphEndpoint: 'https://staging.knowwheregraph.org/sparql'
98
};
109

1110
/*

node-browser/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>NodeBrowser</title>
5+
<title>Node Browser</title>
66
<base href="/" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />

0 commit comments

Comments
 (0)