Skip to content

Commit

Permalink
Merge pull request #19 from KnowWhereGraph/develop
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
ckfisher authored Dec 11, 2024
2 parents e0a5c9f + b8ca537 commit 0f3004c
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The stage environment uses the staging deployments SPARQL endpoint. It also redi

### Production Environment

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

### Custom

Expand Down
39 changes: 24 additions & 15 deletions node-browser/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
},
"configurations": {
"production": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
Expand All @@ -51,16 +57,27 @@
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "2mb"
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "2mb"
"maximumError": "5mb"
}
],
"outputHashing": "all"
},
"stko": {
"buildOptimizer": true,
"optimization": false,
"extractLicenses": false,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
},
"stage": {
"buildOptimizer": false,
"optimization": false,
Expand Down Expand Up @@ -95,34 +112,26 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"prod": {
"production": {
"browserTarget": "node-browser:build:production"
},
"local": {
"browserTarget": "node-browser:build:local"
},
"stage": {
"browserTarget": "node-browser:build:stage"
},
"stko": {
"browserTarget": "node-browser:build:stko"
}
},
"defaultConfiguration": "prod"
"defaultConfiguration": "stko"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "node-browser:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion node-browser/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
build: '.'
volumes:
- ./dist/:/app/dist/
entrypoint: ["ng","build","--configuration=production"]
entrypoint: ["ng","build","--configuration=stko"]
28 changes: 14 additions & 14 deletions node-browser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion node-browser/src/app/browse/browse.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@
<a
*ngIf="outbound_info.predicate_label"
class="pred-link"
target="_blank"
href="{{ outbound_info.predicate_kwg_link }}"
>{{ outbound_info.predicate_label }}</a
>
<a
*ngIf="!outbound_info.predicate_label"
class="pred-link"
target="_blank"
href="{{ outbound_info.predicate_kwg_link }}"
>{{ outbound_info.predicate_name }}</a
>
<a href="{{ outbound_info.predicate_link }}"
target="_blank"
><mat-icon [inline]="true" class="browse-open-icon table"
>open_in_new</mat-icon
></a
Expand All @@ -48,10 +51,11 @@
}}</span></span
>
<span *ngIf="!outbound_relation.isPredicate"
><a class="obj-link" href="{{ outbound_relation.localURI }}">{{
><a class="obj-link" target="_blank" href="{{ outbound_relation.localURI }}">{{
outbound_relation.name
}}</a
><a href="{{ outbound_relation.link }}"
target="_blank"
><mat-icon [inline]="true" class="browse-open-icon table"
>open_in_new</mat-icon
></a
Expand Down
1 change: 0 additions & 1 deletion node-browser/src/environments/environment.local.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const environment = {
baseAddress: 'localhost/',
graphEndpoint: 'https://localhost/sparql',
production: false,
};
1 change: 0 additions & 1 deletion node-browser/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const environment = {
baseAddress: 'https://stko-kwg.geog.ucsb.edu/',
graphEndpoint: 'https://stko-kwg.geog.ucsb.edu/sparql',
production: true,
};
1 change: 0 additions & 1 deletion node-browser/src/environments/environment.stage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const environment = {
baseAddress: 'https://staging.knowwheregraph.org/',
graphEndpoint: 'https://staging.knowwheregraph.org/sparql',
production: false,
};
3 changes: 1 addition & 2 deletions node-browser/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

export const environment = {
baseAddress: 'https://staging.knowwheregraph.org/',
graphEndpoint: 'https://staging.knowwheregraph.org/sparql',
production: false,
graphEndpoint: 'https://staging.knowwheregraph.org/sparql'
};

/*
Expand Down
2 changes: 1 addition & 1 deletion node-browser/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>NodeBrowser</title>
<title>Node Browser</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down

0 comments on commit 0f3004c

Please sign in to comment.