diff --git a/DEPENDENCES.md b/DEPENDENCIES.md similarity index 94% rename from DEPENDENCES.md rename to DEPENDENCIES.md index 70196bd..483d53b 100644 --- a/DEPENDENCES.md +++ b/DEPENDENCIES.md @@ -1,11 +1,11 @@ -# Dependences Of Sshwifty +# Dependencies used by Sshwifty Sshwifty uses many third-party components. Those components is required inorder for Sshwifty to function. A list of used components can be found inside `package.json` and `go.mod` file. -Major dependences includes: +Major dependencies includes: ## For front-end application diff --git a/README.md b/README.md index c73bd84..b073042 100644 --- a/README.md +++ b/README.md @@ -198,10 +198,10 @@ SSHWIFTY_WRITEELAY Code of this project is licensed under AGPL, see [LICENSE.md] for detail. Third-party components used by this project are licensed under their respective -license. See [DEPENDENCES.md] for dependences used by this project. +license. See [DEPENDENCIES.md] for dependencies used by this project. [LICENSE.md]: LICENSE.md -[DEPENDENCES.md]: DEPENDENCES.md +[DEPENDENCIES.md]: DEPENDENCIES.md ## Contribute diff --git a/application/controller/controller.go b/application/controller/controller.go index bbfb469..7e7a1ba 100644 --- a/application/controller/controller.go +++ b/application/controller/controller.go @@ -84,7 +84,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { fallthrough case "/LICENSE.md": fallthrough - case "/DEPENDENCES.md": + case "/DEPENDENCIES.md": err = serveStaticData(r.URL.Path[1:], w, r, clientLogger) default: diff --git a/application/controller/static_page_generater/main.go b/application/controller/static_page_generater/main.go index 5e64b3e..4db1479 100644 --- a/application/controller/static_page_generater/main.go +++ b/application/controller/static_page_generater/main.go @@ -44,7 +44,7 @@ const ( var ( staticPages = map[string]staticData{ - {{ range . }}"{{ .Name }}": + {{ range . }}"{{ .Name }}": parseStaticData({{ .GOPackage }}.{{ .GOVariableName }}()), {{ end }} } @@ -154,7 +154,7 @@ var ( // by "go generate", DO NOT EDIT! Also, do not open this file, it maybe too large // for your editor. You've been warned. // -// This file may contain third-party binaries. See DEPENDENCES for detail. +// This file may contain third-party binaries. See DEPENDENCIES.md for detail. import ( "time" @@ -182,14 +182,14 @@ func {{ .GOVariableName }}() ( } data, dataErr := hex.DecodeString(raw{{ .GOVariableName }}Data) - + raw{{ .GOVariableName }}Data = "" if dataErr != nil { panic(dataErr) } - return {{ .FileStart }}, {{ .FileEnd }}, + return {{ .FileStart }}, {{ .FileEnd }}, {{ .CompressedStart }}, {{ .CompressedEnd }}, "{{ .ContentHash }}", "{{ .CompressedHash }}", created, data } diff --git a/webpack.config.js b/webpack.config.js index 607101b..4e974ba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -235,7 +235,7 @@ module.exports = { to: path.join(__dirname, ".tmp", "dist") }, { - from: path.join(__dirname, "DEPENDENCES.md"), + from: path.join(__dirname, "DEPENDENCIES.md"), to: path.join(__dirname, ".tmp", "dist") }, {