Skip to content

Commit ef2b543

Browse files
committed
Various
1 parent 3cedba7 commit ef2b543

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

iwsy/resources/ecs/fileman.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@
4141
variable Path
4242
variable N
4343
variable Even
44-
variable Args
45-
variable Domain
4644
variable IsHome
47-
variable Item
4845
variable Post
4946

5047
get IsHome from storage as `.ishome`
51-
get CDN from storage as `.cdn`
5248
get AdminPassword from storage as `.password`
5349

5450
if portrait
@@ -132,7 +128,7 @@
132128
Show:
133129
set style `display` of Container to `block`
134130

135-
if IsHome
131+
if IsHome is `true`
136132
begin
137133
get UserRecord from storage as `.user`
138134
put property `email` of UserRecord into Email
@@ -148,7 +144,7 @@ Show:
148144
! Build the list
149145
Browser:
150146
put CurrentPath into storage as `.filepath`
151-
if IsHome
147+
if IsHome is `true`
152148
begin
153149
rest get Content from `ulist/` cat Email cat `/` cat Password cat `/` cat CurrentPath cat `?v=` cat now
154150
or begin
@@ -225,7 +221,7 @@ Browser:
225221
if FileCount is 0
226222
begin
227223
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
229225
else put `delete/` cat AdminPassword cat `/` cat CurrentPath into Post
230226
rest post to Post or
231227
begin
@@ -268,7 +264,7 @@ SelectFile:
268264
set the text of URL to `resources/` cat FilePath
269265
on click DeleteButton
270266
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
272268
else put `delete/` cat AdminPassword cat `/` cat FilePath into Post
273269
rest post to Post or
274270
begin
@@ -297,7 +293,7 @@ Upload:
297293
else
298294
begin
299295
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
301297
else put `upload/` cat AdminPassword cat `/` cat Path into Path
302298
upload UploadFile to Path with UploadProgress and UploadStatus
303299
goto Browser

iwsy/resources/ecs/help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Decorate:
129129

130130
! Process an image, including positioning and class information
131131
ProcessImage:
132-
put the position of `:` in Data into N
132+
put the position of `|` in Data into N
133133
if N is -1
134134
begin
135135
put `<img id="ec-image-` cat ImageCount cat `" src="` cat Data cat `?v=` cat now cat `" />` into Payload

iwsy/resources/ecs/iwsy.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,21 @@
9999

100100
rest path `rest.php`
101101

102+
json parse url the location as Args
103+
put property `protocol` of Args into Protocol
104+
put property `domain` of Args into Domain
105+
102106
! Test if site is on a static host
103107
clear Static
104-
rest get Item from `test`
108+
rest get Item from Protocol cat Domain cat `/test`
105109
or begin
106110
print `Static website`
107111
set Static
112+
clear IsHome
108113
put empty into CDN
114+
go to Start
109115
end
110-
put Static into storage as `.static`
111-
if Static go to Start
112116

113-
json parse url the location as Args
114-
put property `protocol` of Args into Protocol
115-
put property `domain` of Args into Domain
116117
if Domain is `iwannashowyou.com` set IsHome else clear IsHome
117118
if IsHome put Protocol cat Domain into CDN
118119
else put `https://easycoder.github.io/iwsy` into CDN
@@ -123,6 +124,7 @@
123124
if Item is `true` clear IsHome
124125

125126
Start:
127+
put Static into storage as `.static`
126128
put IsHome into storage as `.ishome`
127129
put CDN into storage as `.cdn`
128130
put empty into CallStack

0 commit comments

Comments
 (0)