41
41
variable Path
42
42
variable N
43
43
variable Even
44
- variable Args
45
- variable Domain
46
44
variable IsHome
47
- variable Item
48
45
variable Post
49
46
50
47
get IsHome from storage as `.ishome`
51
- get CDN from storage as `.cdn`
52
48
get AdminPassword from storage as `.password`
53
49
54
50
if portrait
132
128
Show:
133
129
set style `display` of Container to `block`
134
130
135
- if IsHome
131
+ if IsHome is `true`
136
132
begin
137
133
get UserRecord from storage as `.user`
138
134
put property `email` of UserRecord into Email
@@ -148,7 +144,7 @@ Show:
148
144
! Build the list
149
145
Browser:
150
146
put CurrentPath into storage as `.filepath`
151
- if IsHome
147
+ if IsHome is `true`
152
148
begin
153
149
rest get Content from `ulist/` cat Email cat `/` cat Password cat `/` cat CurrentPath cat `?v=` cat now
154
150
or begin
@@ -225,7 +221,7 @@ Browser:
225
221
if FileCount is 0
226
222
begin
227
223
put Path into CurrentPath
228
- if IsHome put `udelete/` cat Email cat `/` cat Password cat `/` cat CurrentPath into Post
224
+ if IsHome is `true` put `udelete/` cat Email cat `/` cat Password cat `/` cat CurrentPath into Post
229
225
else put `delete/` cat AdminPassword cat `/` cat CurrentPath into Post
230
226
rest post to Post or
231
227
begin
@@ -268,7 +264,7 @@ SelectFile:
268
264
set the text of URL to `resources/` cat FilePath
269
265
on click DeleteButton
270
266
begin
271
- if IsHome put `udelete/` cat Email cat `/` cat Password cat `/` cat FilePath into Post
267
+ if IsHome is `true` put `udelete/` cat Email cat `/` cat Password cat `/` cat FilePath into Post
272
268
else put `delete/` cat AdminPassword cat `/` cat FilePath into Post
273
269
rest post to Post or
274
270
begin
@@ -297,7 +293,7 @@ Upload:
297
293
else
298
294
begin
299
295
put CurrentPath into Path
300
- if IsHome put `uupload/` cat Email cat `/` cat Password cat `/` cat Path into Path
296
+ if IsHome is `true` put `uupload/` cat Email cat `/` cat Password cat `/` cat Path into Path
301
297
else put `upload/` cat AdminPassword cat `/` cat Path into Path
302
298
upload UploadFile to Path with UploadProgress and UploadStatus
303
299
goto Browser
0 commit comments