diff --git a/server.go b/server.go
index b0cb150..ae04502 100644
--- a/server.go
+++ b/server.go
@@ -341,6 +341,11 @@ func getCrmFileID(urlPath string) string {
func response404Handler(w http.ResponseWriter) {
w.WriteHeader(http.StatusNotFound)
+ str, err := ioutil.ReadFile(GlobalPath.SinglePageEdit + "404.html")
+ if err == nil {
+ fmt.Fprintf(w, "%s", str)
+ return
+ }
fmt.Fprintf(w, "not found")
}
diff --git a/spa/404.html b/spa/404.html
new file mode 100644
index 0000000..4c27a10
--- /dev/null
+++ b/spa/404.html
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ Materialize
+
+
+
+
+
+
+
+
+
+
+
+
Not Found
+
Oops! 你要的资源没有找到
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spa/pinegrow.json b/spa/pinegrow.json
index dc8e744..4cdf6ea 100644
--- a/spa/pinegrow.json
+++ b/spa/pinegrow.json
@@ -1 +1 @@
-{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize","custom_width":896}
\ No newline at end of file
+{"files":{"edit.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.asset.manager","pg.project.items","mat0.97.5","pg.html","pg.components"],"last_page_width":896},"404.html":{"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"last_page_width":1024}},"breakpoints":["28.875em","33.875em","35.875em","38.875em","40.125em","46.75em","360px","390px","420px","450px","480px","510px","540px","570px","601px","630px","660px","690px","720px","750px","780px","810px","840px","870px","900px","930px","960px","993px","1200px"],"frameworks":["spa","pg.insight.events","pg.code-validator","pg.project.items","pg.asset.manager","mat0.97.5","pg.html","pg.components"],"template_framework_id":"materialize"}
\ No newline at end of file
diff --git a/spa/style.css b/spa/style.css
index e69de29..ec99a10 100644
--- a/spa/style.css
+++ b/spa/style.css
@@ -0,0 +1,7 @@
+
+
+.super-large
+{
+ font-size: 100px;
+}
+
diff --git a/spaEdit.go b/spaEdit.go
index 2d93469..89c413d 100644
--- a/spaEdit.go
+++ b/spaEdit.go
@@ -16,8 +16,9 @@ func spaEditProfile(w http.ResponseWriter, r *http.Request) {
case "GET":
lead, found := getLeadFromRequest(r)
if !found {
- w.WriteHeader(http.StatusUnauthorized)
- fmt.Fprintf(w, "User not found ")
+ response404Handler(w)
+ // w.WriteHeader(http.StatusUnauthorized)
+ // fmt.Fprintf(w, "User not found ")
return
}
spaEditProfilePopulateLeadInfo(w, lead)