[chore/frontend] remove references to unused bundle.js (#1128)
This commit is contained in:
parent
50dc179d33
commit
1281a9fd4a
|
@ -110,9 +110,9 @@ func (m *Module) profileGETHandler(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
stylesheets := []string{
|
stylesheets := []string{
|
||||||
"/assets/Fork-Awesome/css/fork-awesome.min.css",
|
assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css",
|
||||||
"/assets/dist/status.css",
|
distPathPrefix + "/status.css",
|
||||||
"/assets/dist/profile.css",
|
distPathPrefix + "/profile.css",
|
||||||
}
|
}
|
||||||
if config.GetAccountsAllowCustomCSS() {
|
if config.GetAccountsAllowCustomCSS() {
|
||||||
stylesheets = append(stylesheets, "/@"+account.Username+"/custom.css")
|
stylesheets = append(stylesheets, "/@"+account.Username+"/custom.css")
|
||||||
|
@ -128,10 +128,7 @@ func (m *Module) profileGETHandler(c *gin.Context) {
|
||||||
"statuses_next": statusResp.NextLink,
|
"statuses_next": statusResp.NextLink,
|
||||||
"show_back_to_top": showBackToTop,
|
"show_back_to_top": showBackToTop,
|
||||||
"stylesheets": stylesheets,
|
"stylesheets": stylesheets,
|
||||||
"javascript": []string{
|
"javascript": []string{distPathPrefix + "/frontend.js"},
|
||||||
"/assets/dist/bundle.js",
|
|
||||||
"/assets/dist/frontend.js",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,14 +39,12 @@ func (m *Module) SettingsPanelHandler(c *gin.Context) {
|
||||||
"instance": instance,
|
"instance": instance,
|
||||||
"stylesheets": []string{
|
"stylesheets": []string{
|
||||||
assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css",
|
assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css",
|
||||||
assetsPathPrefix + "/dist/_colors.css",
|
distPathPrefix + "/_colors.css",
|
||||||
assetsPathPrefix + "/dist/base.css",
|
distPathPrefix + "/base.css",
|
||||||
assetsPathPrefix + "/dist/profile.css",
|
distPathPrefix + "/profile.css",
|
||||||
assetsPathPrefix + "/dist/status.css",
|
distPathPrefix + "/status.css",
|
||||||
assetsPathPrefix + "/dist/settings-style.css",
|
distPathPrefix + "/settings-style.css",
|
||||||
},
|
|
||||||
"javascript": []string{
|
|
||||||
assetsPathPrefix + "/dist/settings.js",
|
|
||||||
},
|
},
|
||||||
|
"javascript": []string{distPathPrefix + "/settings.js"},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,8 +105,8 @@ func (m *Module) threadGETHandler(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
stylesheets := []string{
|
stylesheets := []string{
|
||||||
"/assets/Fork-Awesome/css/fork-awesome.min.css",
|
assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css",
|
||||||
"/assets/dist/status.css",
|
distPathPrefix + "/status.css",
|
||||||
}
|
}
|
||||||
if config.GetAccountsAllowCustomCSS() {
|
if config.GetAccountsAllowCustomCSS() {
|
||||||
stylesheets = append(stylesheets, "/@"+username+"/custom.css")
|
stylesheets = append(stylesheets, "/@"+username+"/custom.css")
|
||||||
|
@ -118,10 +118,7 @@ func (m *Module) threadGETHandler(c *gin.Context) {
|
||||||
"context": context,
|
"context": context,
|
||||||
"ogMeta": ogBase(instance).withStatus(status),
|
"ogMeta": ogBase(instance).withStatus(status),
|
||||||
"stylesheets": stylesheets,
|
"stylesheets": stylesheets,
|
||||||
"javascript": []string{
|
"javascript": []string{distPathPrefix + "/frontend.js"},
|
||||||
"/assets/dist/bundle.js",
|
|
||||||
"/assets/dist/frontend.js",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ const (
|
||||||
rssFeedPath = profilePath + "/feed.rss"
|
rssFeedPath = profilePath + "/feed.rss"
|
||||||
statusPath = profilePath + "/statuses/:" + statusIDKey
|
statusPath = profilePath + "/statuses/:" + statusIDKey
|
||||||
assetsPathPrefix = "/assets"
|
assetsPathPrefix = "/assets"
|
||||||
|
distPathPrefix = assetsPathPrefix + "/dist"
|
||||||
userPanelPath = "/settings/user"
|
userPanelPath = "/settings/user"
|
||||||
adminPanelPath = "/settings/admin"
|
adminPanelPath = "/settings/admin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue