Skip to content

Commit 477b134

Browse files
committed
Configure service and app name
1 parent 80d5e37 commit 477b134

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ export default {
44
// to the corresponding back-end automatically.
55
serverUrl: '',
66

7+
// The name of the service
8+
serviceName: 'openEO',
9+
// The name of the app
10+
appName: 'Web Editor',
11+
712
// Skip login and automatically load up the "discovery mode"
813
skipLogin: false,
914

public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<title>openEO Web Editor</title>
5+
<title></title>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -15,11 +15,11 @@
1515
<script type="text/javascript">
1616
window.onload = function() {
1717
if (document.getElementById('app')) {
18-
document.writeln("Sorry, the openEO Web Editor requires a modern browsers. Please update your browser or use Google Chrome or Mozilla Firefox as alternative.");
18+
document.writeln("Sorry, this website requires a modern browser. Please update your browser or use Google Chrome or Mozilla Firefox as alternative.");
1919
}
2020
}
2121
</script>
22-
<noscript>Sorry, the openEO Web Editor requires JavaScript to be enabled!</noscript>
22+
<noscript>Sorry, this website requires JavaScript to be enabled!</noscript>
2323
</body>
2424

2525
</html>

src/Page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
...Utils.mapMutations(['startActiveRequest', 'endActiveRequest']),
108108
...Utils.mapActions('userProcesses', {readUserProcess: 'read'}),
109109
setTitle(subtitle) {
110-
var title = "openEO Web Editor";
110+
var title = `${this.$config.serviceName} ${this.$config.appName}`;
111111
if (subtitle) {
112112
title += ": " + subtitle;
113113
}

src/components/Logo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="logo">
3-
<img v-if="$config.logo" :src="$config.logo" alt="Logo" />
4-
<h2>Web Editor <span class="version" @click="showWebEditorInfo">{{ version }}</span></h2>
3+
<img v-if="$config.logo" :src="$config.logo" :alt="$config.serviceName" />
4+
<h2>{{ $config.appName }} <span class="version" @click="showWebEditorInfo">{{ version }}</span></h2>
55
</div>
66
</template>
77

src/components/modals/WebEditorModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
},
2626
computed: {
2727
title() {
28-
return "openEO Web Editor " + this.pkg.version;
28+
return `${this.$config.serviceName} ${this.$config.appName} ${this.pkg.version}`;
2929
}
3030
}
3131
}

0 commit comments

Comments
 (0)