Skip to content

Commit

Permalink
Changes for hetzner migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Irae Hueck Costa committed Feb 22, 2024
1 parent c761fef commit 04c3f37
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
43 changes: 0 additions & 43 deletions backend/endpoints/load.js.go

This file was deleted.

2 changes: 1 addition & 1 deletion backend/lib/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func NewApp() *App {
} else {
prefix = "./static"
}
} else if r.Host == "counter.dev" || r.Host == "simple-web-analytics.com" {
} else if r.Host == "counter.dev"|| r.Host == "counter" || r.Host == "simple-web-analytics.com" {
prefix = "/state/static/master"
} else if r.Host == "www.counter.dev" || r.Host == "www.simple-web-analytics.com" {
prefix = "/state/static/master"
Expand Down
43 changes: 43 additions & 0 deletions static/load.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Add new manually here
[
"/components/_base.js",
"/components/counter-flash.js",
"/components/counter-trackingcode.js",
"/components/base/editaccount.js",
"/components/base/flash.js",
"/components/base/footer.js",
"/components/base/navbar.js",
"/components/base/pwyw.js",
"/components/dashboard/_base.js",
"/components/dashboard/addbtn.js",
"/components/dashboard/connstatus.js",
"/components/dashboard/daterangeselector.js",
"/components/dashboard/demo-flash.js",
"/components/dashboard/download.js",
"/components/dashboard/dynamics.js",
"/components/dashboard/graph.js",
"/components/dashboard/hour.js",
"/components/dashboard/languages.js",
"/components/dashboard/nodata.js",
"/components/dashboard/number.js",
"/components/dashboard/pages.js",
"/components/dashboard/pie.js",
"/components/dashboard/pwyw.js",
"/components/dashboard/screens.js",
"/components/dashboard/selector.js",
"/components/dashboard/settings.js",
"/components/dashboard/share-account.js",
"/components/dashboard/sources-countries.js",
"/components/dashboard/time-graph.js",
"/components/dashboard/time.js",
"/components/dashboard/visits.js",
"/components/dashboard/week-graph.js",
"/components/dashboard/week.js",
"/components/dashboard/counter/direct.js",
"/components/dashboard/counter/search.js",
"/components/dashboard/counter/social.js",
"/components/dashboard/counter/visitors.js"
].sort().map(file => {
let script = document.createElement("script");
script.src = file; script.async = false;
document.head.appendChild(script)})

0 comments on commit 04c3f37

Please sign in to comment.