Skip to content

Commit

Permalink
Move public resources to own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Apr 14, 2022
1 parent 9a8fd87 commit d630404
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions resources/tpl/index.ejs → resources/public/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<meta name="_csrf_parameter_name" content="<%= htmlWebpackPlugin.options.csrf.csrfParameterName %>" />
<% } %>
<base href="<%= htmlWebpackPlugin.options.appPrefix %>">
<link rel="shortcut icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<div id="loadmask" class="loadmask">
<img src="../img/loading.png" alt="Loading, please wait…">
<img src="./loading.png" alt="Loading, please wait…">
</div>
<title><%= htmlWebpackPlugin.options.title %></title>
<style>
Expand Down
File renamed without changes
12 changes: 6 additions & 6 deletions resources/i18n/translations.ts → src/i18n/translations.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export default {
de: {
translation: {
Nominatim: {
placeholder: 'Ortsname, Straßenname, Stadtteilname, POI usw.'
},
Drawer: {
title: 'Themen'
},
BasicMeasureButton: {
text: 'Strecke messen'
}
}
},
en: {
translation: {
Nominatim: {
placeholder: 'Place name, street name, district name, POI, etc.'
},
Drawer: {
title: 'Layers'
},
BasicMeasureButton: {
text: 'Measure distance'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = {
new HtmlWebpackPlugin({
filename: 'index.html',
title: 'Hello World',
template: path.join(__dirname, 'resources', 'tpl', 'index.ejs'),
template: path.join(__dirname, 'resources', 'public', 'index.ejs'),
hash: true,
minify: {
collapseWhitespace: true,
Expand Down

0 comments on commit d630404

Please sign in to comment.