-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:12 as builder | ||
|
||
WORKDIR /src/app | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
RUN npm install --force && npm cache clean --force | ||
|
||
COPY . . | ||
|
||
RUN npm run-script build | ||
|
||
FROM nginx:1-alpine | ||
LABEL org.opencontainers.image.source="https://github.com/rhizomedotorg/artbase-query-gui/" | ||
|
||
ADD ./docker/nginx.default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=builder --chown=nginx:nginx /src/app/build /usr/share/nginx/html | ||
This comment has been minimized.
Sorry, something went wrong. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ module.exports = function( grunt ) { | |
cwd: './', | ||
src: [ | ||
'*.html', | ||
'logo.svg', 'logo-embed.svg', 'robots.txt', 'favicon.*' | ||
'robots.txt', 'favicon.*' | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
], | ||
dest: buildFolder | ||
},{ | ||
|
@@ -179,6 +179,22 @@ module.exports = function( grunt ) { | |
], | ||
dest: buildFolder + '/default-config.json', | ||
filter: 'isFile' | ||
}, | ||
{// json custom config | ||
expand: false, | ||
src: [ | ||
'custom-config.json' | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
], | ||
dest: buildFolder + '/custom-config.json', | ||
filter: 'isFile' | ||
}, | ||
{// extra assets | ||
expand: true, | ||
cwd: './', | ||
src: [ | ||
'Rhizome-Logo-R.svg' | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
], | ||
dest: buildFolder | ||
} | ||
] | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"api": { | ||
"sparql": { | ||
"uri": "https://query.artbase.rhizome.org/proxy/wdqs/bigdata/namespace/wdq/sparql" | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
}, | ||
"wikibase": { | ||
"uri": "https://query.artbase.rhizome.org/proxy/wikibase/w/api.php" | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
}, | ||
"examples": { | ||
"server": "https://query.artbase.rhizome.org/proxy/wikibase/", | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
"apiPath": "w/api.php", | ||
"pageTitle": "Query/Examples", | ||
"pagePathElement": "wiki/" | ||
}, | ||
"urlShortener": "tinyurl", | ||
"query-builder": { | ||
"server": "https://query-builder-test.toolforge.org/" | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} | ||
}, | ||
"brand": { | ||
"title": "ArtBase Query", | ||
"logo": "https://artbase.rhizome.org/w/resources/assets/artbase/Rhizome-Logo-Web.svg", | ||
"favicon": "https://rhizome.global.ssl.fastly.net/static/favicon/favicon.ico?v=xQQqrB8XAN1", | ||
"copyrightUrl": "https://artbase.rhizome.org/wiki/Copyright" | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
}, | ||
"location": { | ||
"root": "./", | ||
"index": "./" | ||
}, | ||
"prefixes": {} | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
@font-face { | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Regular.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Regular.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Regular.woff") format("woff"); | ||
font-weight: normal; | ||
} | ||
|
||
@font-face { | ||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Bold.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Bold.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Bold.woff") format("woff"); | ||
font-weight: bold; | ||
} | ||
|
||
@font-face { | ||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-BoldItalic.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-BoldItalic.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-BoldItalic.woff") format("woff"); | ||
font-weight: bold; | ||
font-style: italic; | ||
} | ||
|
||
@font-face { | ||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-LightItalic.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-LightItalic.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-LightItalic.woff") format("woff"); | ||
font-weight: 300; | ||
font-style: italic; | ||
} | ||
|
||
@font-face { | ||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Light.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Light.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Light.woff") format("woff"); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: "HKGrotesk"; | ||
src: url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Italic.ttf") format('truetype'), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Italic.woff2") format("woff2"), | ||
url("https://artbase.rhizome.org/w/resources/assets/artbase/HKGrotesk/HKGrotesk-Italic.woff") format("woff"); | ||
font-style: italic; | ||
} | ||
|
||
|
||
body { | ||
font-family: 'HK Grotesk'; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
color: #000; | ||
font-size: 16px; | ||
} | ||
|
||
.CodeMirror { | ||
font-size: 14px; | ||
} | ||
|
||
|
||
|
||
// remove inactive status bars below editor | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
.query-helper-tag-cloud, | ||
.status.navbar.navbar-default { | ||
display: none; | ||
} | ||
|
||
.query-main { | ||
border-bottom: 1px solid @border-color-base--disabled; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} | ||
|
||
.artbase-branding { | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
padding: .5rem 15px 0; | ||
.artbase-rhizome-logo { | ||
position: relative; | ||
top: -2px; | ||
margin-right: 6px; | ||
} | ||
} | ||
|
||
|
||
/* QUERY RESULTS */ | ||
#query-result { | ||
font-size: 14px; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
.bootstrap-table { | ||
padding: 0 !important; | ||
} | ||
} | ||
|
||
button[name=paginationSwitch] { | ||
display: none !important; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} | ||
|
||
.fixed-table-pagination { | ||
padding-left: 1rem; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
padding-right: 1rem; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
server { | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
server_name localhost; | ||
charset utf-8; | ||
|
||
# files transfer | ||
client_body_in_file_only clean; | ||
client_body_buffer_size 32K; | ||
client_max_body_size 1026g; | ||
sendfile on; | ||
send_timeout 300s; | ||
|
||
location /proxy/wikibase { | ||
rewrite /proxy/wikibase/(.*) /$1 break; | ||
proxy_pass http://wikibase.svc:80; | ||
} | ||
|
||
location /proxy/wdqs { | ||
rewrite /proxy/wdqs/(.*) /$1 break; | ||
proxy_pass http://wdqs-proxy.svc:80; | ||
} | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
# deny access to hidden files (beginning with a period) | ||
location ~ /\. { | ||
access_log off; log_not_found off; deny all; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,10 +55,9 @@ | |
top: 0px; | ||
height: 100%; | ||
width: 100%; | ||
background-size: 80% 80%; | ||
background-image: url(logo-embed.svg); | ||
background-image: url(Rhizome-Logo-R.svg); | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-position: 50% 50%; | ||
z-index: -1; | ||
} | ||
|
||
|
@@ -121,7 +120,7 @@ | |
.bootstrap-table { | ||
width: 100%; | ||
height: auto; | ||
padding: 20px 50px; | ||
/* padding: 20px 50px; */ | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} | ||
|
||
#query-result .jstree { | ||
|
@@ -252,7 +251,9 @@ | |
} | ||
|
||
.brand img { | ||
padding: 0.1em; | ||
height: 10px; | ||
padding-bottom: 2px; | ||
padding-right: 3px; | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
} | ||
|
||
@media only screen and (max-height: 285px) { | ||
|
@@ -310,8 +311,6 @@ | |
padding: 0px; | ||
} | ||
|
||
} | ||
|
||
</style> | ||
<style id="MJX-CHTML-styles">/* placeholder for MathJax */</style> | ||
<body> | ||
|
@@ -326,12 +325,12 @@ | |
</div> | ||
</noscript> | ||
|
||
<a class="edit-link brand" _target="_self" rel="noopener" href="./"><img width="24" height="15" src=""><span></span></a> | ||
<a class="edit-link brand" _target="_self" rel="noopener" href="./"><img src=""><span></span></a> | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
<!-- | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
<div class="header-toolbar"> | ||
<ul id="result-browser-menu"> | ||
</ul> | ||
</div> | ||
|
||
<div class="toolbar-right"> | ||
<ul id="embed-right-menu"> | ||
<li> | ||
|
@@ -384,7 +383,8 @@ | |
<span class="query-total"><span class="label label-default" id="response-summary"></span></span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
--> | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
<div class="action-bar"> | ||
<div class="message"></div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,13 @@ | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-_target="#header-navbar-collapse" aria-expanded="false"> | ||
<span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span> | ||
</button> | ||
<div class="navbar-brand"> | ||
<a href="./"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="><span></span></a> | ||
<div class="h4 artbase-branding"> | ||
<a href="//rhizome.org/"> | ||
<img src="//artbase.rhizome.org/w/resources/assets/artbase/Rhizome-Logo-Web.svg" class="artbase-rhizome-logo" alt="RHIZOME" width="130" height="20"></a> | ||
/ | ||
<a href="//artbase.rhizome.org">ArtBase</a> | ||
/ | ||
<b>Query</b> | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
</div> | ||
</div> | ||
<div class="collapse navbar-collapse in" id="header-navbar-collapse"> | ||
|
@@ -68,6 +73,7 @@ | |
<span class="fa fa-folder-open-o"></span> <span data-i18n="wdqs-app-button-examples" id="examples-label"></span> | ||
</button> | ||
</li> | ||
<!-- | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
<li class="dropdown"> | ||
<div class="btn-group navbar-btn"> | ||
<a href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:SPARQL_query_service/Wikidata_Query_Help" _target="_self" class="btn btn-default"> | ||
|
@@ -112,6 +118,7 @@ | |
</ul> | ||
</div> | ||
</li> | ||
--> | ||
This comment has been minimized.
Sorry, something went wrong.
despens
Author
Member
|
||
</ul> | ||
<ul class="nav navbar-nav navbar-right" id="right-navbar"> | ||
<li> | ||
|
Adding a Dockerfile that builds the query service GUI and puts it into an nginx container. Reverse proxy settings in the nginx configuration point to other services defined in the overall Wikibase docker-compose file.