Skip to content

Commit ec5d8b9

Browse files
authored
Refine netlify deployment (#57)
* add redirect file * add header * trigger build * trigger another build
1 parent 4bfc5a6 commit ec5d8b9

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# Text Compare Tool
2+
23
This app is used to compare text, built with Angular and [Monaco Editor](https://github.com/Microsoft/monaco-editor).
34
<kbd>![image](/src/assets/typescript.png)</kbd>
45

56
# Function
7+
68
This app can determine the different content for the given 'Original Text' and 'Changed Text'. It is based on [Monaco Diff Editor](https://microsoft.github.io/monaco-editor) and currently supporting the following features:
79
* Syntax highlighting for 45+ languages, including c, c++, java, javascript, html, typescript, etc.
810
* Three editor themes: Visual Studio, Visual Studio Dark and High Contrast Dark.
911
* Diff Mode: Side by Side Diff, Inline Diff.
1012

1113
# Technology
14+
1215
* Frontend Framework: Angular
1316
* Styling: bootstrap
14-
* Text Editor: ngx-monaco-editor
17+
* Text Editor: ngx-monaco-editor-v2
1518

1619
# Demo
1720

angular.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
"output": "/assets/monaco"
2727
},
2828
"src/assets",
29-
"src/favicon.ico"
29+
"src/favicon.ico",
30+
"src/_redirects",
31+
"src/_headers"
3032
],
3133
"styles": [
3234
"node_modules/bootstrap/dist/css/bootstrap.min.css",
@@ -121,7 +123,9 @@
121123
"output": "/assets/monaco"
122124
},
123125
"src/assets",
124-
"src/favicon.ico"
126+
"src/favicon.ico",
127+
"src/_redirects",
128+
"src/_headers"
125129
]
126130
}
127131
}

src/_headers

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
X-Frame-Options: DENY
3+
X-XSS-Protection: 1; mode=block
4+
X-Content-Type-Options: nosniff
5+
Referrer-Policy: strict-origin-when-cross-origin
6+
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
7+
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https://api.github.com/

src/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

0 commit comments

Comments
 (0)