Spaces:
Running
Running
Commit
•
3449def
1
Parent(s):
ce53d9f
code status
Browse files- viewer/src/routes/+page.svelte +2 -15
- viewer/src/routes/Row.ts +0 -1
viewer/src/routes/+page.svelte
CHANGED
@@ -129,17 +129,9 @@
|
|
129 |
{
|
130 |
key: "Code",
|
131 |
title: "Code",
|
132 |
-
value: (v: Row) => v.
|
133 |
sortable: true,
|
134 |
-
searchValue: (v: Row) =>
|
135 |
-
let searchValue = v.Code || "";
|
136 |
-
if (v.CodeStatus === "Coming Soon") {
|
137 |
-
searchValue += " Coming Soon";
|
138 |
-
} else if (v.CodeStatus === "No") {
|
139 |
-
searchValue += " No";
|
140 |
-
}
|
141 |
-
return searchValue;
|
142 |
-
},
|
143 |
renderValue: (v: Row) => {
|
144 |
let codeUrl;
|
145 |
let codeDisplay;
|
@@ -151,11 +143,6 @@
|
|
151 |
codeDisplay = v.Code.slice(0, 16) + "...";
|
152 |
}
|
153 |
}
|
154 |
-
if (v.CodeStatus === "Coming Soon") {
|
155 |
-
codeDisplay = "Coming Soon";
|
156 |
-
} else if (v.CodeStatus === "No") {
|
157 |
-
codeDisplay = "No";
|
158 |
-
}
|
159 |
if (!codeDisplay) {
|
160 |
return "";
|
161 |
}
|
|
|
129 |
{
|
130 |
key: "Code",
|
131 |
title: "Code",
|
132 |
+
value: (v: Row) => v.Code || "",
|
133 |
sortable: true,
|
134 |
+
searchValue: (v: Row) => v.Code || "",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
renderValue: (v: Row) => {
|
136 |
let codeUrl;
|
137 |
let codeDisplay;
|
|
|
143 |
codeDisplay = v.Code.slice(0, 16) + "...";
|
144 |
}
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
146 |
if (!codeDisplay) {
|
147 |
return "";
|
148 |
}
|
viewer/src/routes/Row.ts
CHANGED
@@ -3,7 +3,6 @@ class Row {
|
|
3 |
Orgs: string[] = [];
|
4 |
Authors: string[] = [];
|
5 |
Tags: string[] = [];
|
6 |
-
CodeStatus: string | null = null;
|
7 |
Paper: string | null = null;
|
8 |
Code: string | null = null;
|
9 |
Space: string | null = null;
|
|
|
3 |
Orgs: string[] = [];
|
4 |
Authors: string[] = [];
|
5 |
Tags: string[] = [];
|
|
|
6 |
Paper: string | null = null;
|
7 |
Code: string | null = null;
|
8 |
Space: string | null = null;
|