Skip to content

Commit 6c9564d

Browse files
committed
update
1 parent e525be2 commit 6c9564d

7 files changed

Lines changed: 100 additions & 71 deletions

File tree

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
<body>
1717
<app-root></app-root>
1818
<noscript>Please enable JavaScript to continue using this application.</noscript>
19-
<link rel="modulepreload" href="chunk-MFWMSMTE.js"><link rel="modulepreload" href="chunk-N57AJHA5.js"><script src="polyfills-S3KRBCMK.js" type="module"></script><script src="scripts-TSGU23AO.js" defer></script><script src="main-6HLZLFDY.js" type="module"></script></body>
19+
<link rel="modulepreload" href="chunk-MFWMSMTE.js"><link rel="modulepreload" href="chunk-N57AJHA5.js"><script src="polyfills-S3KRBCMK.js" type="module"></script><script src="scripts-TSGU23AO.js" defer></script><script src="main-SS2DAPHT.js" type="module"></script></body>
2020
</html>
Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ngsw.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"configVersion": 1,
3-
"timestamp": 1769166605309,
3+
"timestamp": 1769264619935,
44
"index": "/index.html",
55
"assetGroups": [
66
{
@@ -17,7 +17,7 @@
1717
"/chunk-ZCRT7WCY.js",
1818
"/favicon.ico",
1919
"/index.html",
20-
"/main-6HLZLFDY.js",
20+
"/main-SS2DAPHT.js",
2121
"/manifest.webmanifest",
2222
"/polyfills-S3KRBCMK.js",
2323
"/scripts-TSGU23AO.js",
@@ -128,8 +128,8 @@
128128
"/chunk-OPKXG5HT.js": "d5030108cbfe5a8b71c1160d31ac71d9b73d38c0",
129129
"/chunk-ZCRT7WCY.js": "329dc506f74b2578bbeaa0c4b3f6b1d3090bdaca",
130130
"/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2",
131-
"/index.html": "dad3b34bff61be71637698bc94228a92a530ed69",
132-
"/main-6HLZLFDY.js": "291934bb8192a804a9a9da6c0c68479120c5f4a7",
131+
"/index.html": "032f8ccd973713741a18023bf3219571a78f02ae",
132+
"/main-SS2DAPHT.js": "160262ca30278cbd4cd7a3b98c1593843011aaf6",
133133
"/manifest.webmanifest": "0f6d8f1c753e9f503daf4cd303ebecc6b0b0a04b",
134134
"/polyfills-S3KRBCMK.js": "666124c1a3df4ed7eb66e54da096791013fab792",
135135
"/scripts-TSGU23AO.js": "e172440274ca0257fbf1b7e414f5bd41b03b202f",

src/app/components/home/home.component.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,13 @@ <h5><i class="bi bi-megaphone-fill me-2"></i>{{currentAnnouncement()!.title}}</h
355355
<button type="button" class="btn-close" (click)="dismissSessionLink()" aria-label="Close"></button>
356356
<div class="d-flex align-items-center">
357357
<div class="flex-grow-1 me-3">
358-
<h6 class="alert-heading mb-2">
359-
<i class="bi bi-link-45deg me-2"></i>Session Link
358+
<h6 class="alert-heading mb-1">
359+
<i class="bi bi-link-45deg me-2"></i>
360+
@if (data.session?.name) {
361+
{{data.session?.name}}
362+
} @else {
363+
Session Link
364+
}
360365
@if (!permanent()) {
361366
<span class="badge bg-dark ms-2">Temporary</span>
362367
} @else {
@@ -372,6 +377,11 @@ <h6 class="alert-heading mb-2">
372377
}
373378
}
374379
</h6>
380+
@if (data.session?.name) {
381+
<div class="small text-muted mb-1">
382+
<i class="bi bi-hash me-1"></i>{{settings.settings.currentID}}
383+
</div>
384+
}
375385
<div class="small mb-2">
376386
<a [href]="uniqueLink" class="text-decoration-none fw-bold" target="_blank" style="word-break: break-all;">
377387
{{uniqueLink}}

src/app/components/session-settings/session-settings.component.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ <h5 class="modal-title">
66
</div>
77
<div class="modal-body">
88
<form [formGroup]="form">
9+
<div class="card mb-3">
10+
<div class="card-header">
11+
<h6 class="mb-0"><i class="bi bi-tag me-2"></i>Session Name</h6>
12+
</div>
13+
<div class="card-body">
14+
<input
15+
type="text"
16+
formControlName="name"
17+
class="form-control"
18+
placeholder="Enter a name for this session (optional)">
19+
<div class="form-text">
20+
Give your session a descriptive name to easily identify it.
21+
</div>
22+
</div>
23+
</div>
24+
925
<div class="card mb-3">
1026
<div class="card-header">
1127
<h6 class="mb-0"><i class="bi bi-eye me-2"></i>Visibility Settings</h6>

src/app/components/session-settings/session-settings.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class SessionSettingsComponent implements OnInit {
4444
return this._currretID
4545
}
4646
form = this.fb.group({
47+
name: [this.data.session?.name || '',],
4748
enable: [this.data.session?.enable,],
4849
update_content: [false,],
4950
temporary_link_lifetime: [1,],
@@ -115,6 +116,7 @@ export class SessionSettingsComponent implements OnInit {
115116
1024 * 1024,
116117
{
117118
link_id: this.currentID,
119+
name: this.form.value["name"],
118120
enable: this.form.value["enable"],
119121
onProgress: (progress: number) => {
120122
this.uploadProgress = progress
@@ -130,6 +132,7 @@ export class SessionSettingsComponent implements OnInit {
130132
}
131133
const payload: any = {
132134
file: fileData,
135+
name: this.form.value["name"],
133136
enable: this.form.value["enable"]
134137
}
135138
const data = await this.accounts.curtainAPI.updateSession(payload, this.currentID, encryption)
@@ -145,7 +148,7 @@ export class SessionSettingsComponent implements OnInit {
145148
this.isUpdating = false
146149
}
147150
} else {
148-
const payload: any = {enable: this.form.value["enable"]}
151+
const payload: any = {name: this.form.value["name"], enable: this.form.value["enable"]}
149152
const encryption: CurtainEncryption = {
150153
encrypted: this.settings.settings.encrypted,
151154
e2e: this.settings.settings.encrypted,

src/app/components/volcano-plot/volcano-plot.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ export class VolcanoPlotComponent implements OnInit, OnDestroy {
244244
this.graphLayout.yaxis.range[1] = this.settings.settings.volcanoAxis.maxY
245245
}
246246
if (this.settings.settings.volcanoAxis.x) {
247-
this.graphLayout.xaxis.title = `<b>${this.settings.settings.volcanoAxis.x}</b>`
247+
this.graphLayout.xaxis.title.text = `<b>${this.settings.settings.volcanoAxis.x}</b>`
248248
}
249249
if (this.settings.settings.volcanoAxis.y) {
250-
this.graphLayout.yaxis.title = `<b>${this.settings.settings.volcanoAxis.y}</b>`
250+
this.graphLayout.yaxis.title.text = `<b>${this.settings.settings.volcanoAxis.y}</b>`
251251
}
252252

253253
temp["Background"] = {

0 commit comments

Comments
 (0)