Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/client/src/pages/script/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Script = () => {
const [script, setScript] = useState<string>('');
const [newScript, setNewScript] = useState<string>('');
const [edit, setEdit] = useState<boolean>(false);
const [token, setToken] = useState<string>('');
const [token, setToken] = useState<string | null>(null);
const fetch = async () => {
try {
const projectRes = await getProject(numericId);
Expand Down Expand Up @@ -134,7 +134,8 @@ const Script = () => {
<p>
curl -X POST \<br />
-H "Content-Type: application/json" \<br />
{`${getHost()}/api/deliver/${project?.name}?token="your-auth-token"`}
{`${getHost()}/api/deliver/${id}?token=${token ? token : 'generate-token'}`}{' '}
<br />
</p>
</div>
</div>
Expand All @@ -144,9 +145,13 @@ const Script = () => {
Get Auth Token
</button>
</div>
<p>
Token is valid for 1 year after generation, you can use it to trigger
the script
</p>
<p>
<span>Token: </span>
{token}
{token ? token : 'Click the button to generate a token'}
</p>
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions src/producer/src/main/resources/static/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"files": {
"main.css": "/static/css/main.092e2e82.css",
"main.js": "/static/js/main.0c4be7c9.js",
"main.js": "/static/js/main.d59df730.js",
"static/js/453.419a5d54.chunk.js": "/static/js/453.419a5d54.chunk.js",
"static/media/autocd-logo.png": "/static/media/autocd-logo.a4cd8552835c4e76a8b9.png",
"index.html": "/index.html",
"main.092e2e82.css.map": "/static/css/main.092e2e82.css.map",
"main.0c4be7c9.js.map": "/static/js/main.0c4be7c9.js.map",
"main.d59df730.js.map": "/static/js/main.d59df730.js.map",
"453.419a5d54.chunk.js.map": "/static/js/453.419a5d54.chunk.js.map"
},
"entrypoints": [
"static/css/main.092e2e82.css",
"static/js/main.0c4be7c9.js"
"static/js/main.d59df730.js"
]
}
2 changes: 1 addition & 1 deletion src/producer/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A tool to automate the process of Continuous Deployment in monolithic servers"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>autoCD</title><script defer="defer" src="/static/js/main.0c4be7c9.js"></script><link href="/static/css/main.092e2e82.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A tool to automate the process of Continuous Deployment in monolithic servers"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>autoCD</title><script defer="defer" src="/static/js/main.d59df730.js"></script><link href="/static/css/main.092e2e82.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.