Skip to content

Commit bff80f3

Browse files
authored
V2.108 Update (#145)
+ Added http.redirect in AGI + Added blocking logic in file system core to avoid walking file system in network drive + Added support for mounting sub-folder path in SMB shared root + Added WebDAV connection timeout + Added more localization for System Settings + Added ffmpeg api call from agi interface + Added support to use appdata lib in init.agi + Added desktop dock left/right indicator + Added desktop system overview & disk util + Added more localization + Added dark theme to default opener tool + Moved buffer-to-local fs function into file system handler's scope + Optimized build script for arm6 (rpi-0 / 0w) + Supporting index.agi for folder entry point + Updated System setting icons + Removed dependencies on fast-template lib + Fixed linux build fail bug + Removed direct agi to linux pakage call method + Fixed large file finder bug + Deprecated virtual path translation related api + Fixed minor file manager css bug + Removed unused agi interface function `getUserInfoByName()` + Fixed desktop css bug on context menu dark theme + Fixed share module dark theme bug + Fixed some module invalid catergory group + Fixed localization key typo in file explorer
1 parent 5d532dc commit bff80f3

File tree

138 files changed

+20029
-11449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+20029
-11449
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ src/web/Cyinput/*
2121
*/aofs.db
2222
release/
2323
src/system/neuralnet/yolov3.weights
24+
src/system/ao.db.lock

docs/docs/index.html

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,11 @@
11
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
5-
<!-- Basic Page Needs
6-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
7-
<meta charset="utf-8">
8-
<title>arozos</title>
9-
<meta name="description" content="">
10-
<meta name="author" content="">
11-
12-
<!-- Mobile Specific Metas
13-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
14-
<meta name="viewport" content="width=device-width, initial-scale=1">
15-
16-
<!-- FONT
17-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
18-
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
19-
20-
<!-- CSS
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22-
<link rel="stylesheet" href="css/normalize.css">
23-
<link rel="stylesheet" href="css/skeleton.css">
24-
25-
<!-- Favicon
26-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
27-
<link rel="icon" type="image/png" href="images/favicon.png">
28-
29-
</head>
30-
<body>
31-
32-
<!-- Primary Page Layout
33-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
34-
<div class="container">
35-
<div class="row">
36-
<div class="one-half column" style="margin-top: 25%">
37-
<h4>arozos</h4>
38-
<p>General purpose Web Desktop Operating System for Raspberry Pis and low power SBCs.<br>Read more over <a href="https://github.com/tobychui/arozos">Github</a></p>
39-
<a class="button button-primary" href="reader/standard/reader.html#%7B%22chapter%22%3A%22started%22%2C%22page%22%3A0%7D">Getting Started</a>
40-
<a class="button" href="reader/standard/reader.html#%7B%22chapter%22%3A%22beta%22%2C%22page%22%3A0%7D">Beta Docs (Legacy)</a>
41-
</div>
42-
<div class="one-half column" style="margin-top: 15%">
43-
<img src="img/ok.png">
44-
</div>
45-
</div>
46-
47-
</div>
48-
49-
<!-- End Document
50-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
51-
</body>
52-
</html>
2+
<html>
3+
<head>
4+
<title>ArozOS Developers</title>
5+
<meta charset="UTF-8" />
6+
<meta http-equiv="refresh" content="3; URL=https://aroz-online.github.io/ArozOS-Developers/" />
7+
</head>
8+
<body>
9+
<p>This page has been moved. If you are not redirected within 3 seconds, click <a href="https://aroz-online.github.io/ArozOS-Developers/">here</a>.</p>
10+
</body>
11+
</html>

docs/docs/index.html_disabled

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
5+
<!-- Basic Page Needs
6+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
7+
<meta charset="utf-8">
8+
<title>arozos</title>
9+
<meta name="description" content="">
10+
<meta name="author" content="">
11+
12+
<!-- Mobile Specific Metas
13+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
14+
<meta name="viewport" content="width=device-width, initial-scale=1">
15+
16+
<!-- FONT
17+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
18+
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
19+
20+
<!-- CSS
21+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
22+
<link rel="stylesheet" href="css/normalize.css">
23+
<link rel="stylesheet" href="css/skeleton.css">
24+
25+
<!-- Favicon
26+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
27+
<link rel="icon" type="image/png" href="images/favicon.png">
28+
29+
</head>
30+
<body>
31+
32+
<!-- Primary Page Layout
33+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
34+
<div class="container">
35+
<div class="row">
36+
<div class="one-half column" style="margin-top: 25%">
37+
<h4>arozos</h4>
38+
<p>General purpose Web Desktop Operating System for Raspberry Pis and low power SBCs.<br>Read more over <a href="https://github.com/tobychui/arozos">Github</a></p>
39+
<a class="button button-primary" href="reader/standard/reader.html#%7B%22chapter%22%3A%22started%22%2C%22page%22%3A0%7D">Getting Started</a>
40+
<a class="button" href="reader/standard/reader.html#%7B%22chapter%22%3A%22beta%22%2C%22page%22%3A0%7D">Beta Docs (Legacy)</a>
41+
</div>
42+
<div class="one-half column" style="margin-top: 15%">
43+
<img src="img/ok.png">
44+
</div>
45+
</div>
46+
47+
</div>
48+
49+
<!-- End Document
50+
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
51+
</body>
52+
</html>

img/banner.png

-811 KB
Loading

img/banner.psd

8.74 MB
Binary file not shown.

img/social_preview.jpg

-90 KB
Loading

img/social_preview.png

-219 KB
Loading

img/social_preview.psd

-1.42 MB
Binary file not shown.

src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ clean:
1818

1919
$(PLATFORMS):
2020
@echo "Building $(os)/$(arch)"
21-
GOROOT_FINAL=Git/ GOOS=$(os) GOARCH=$(arch) GOARM=6 go build -o './dist/arozos_$(os)_$(arch)' -ldflags "-s -w" -trimpath
21+
# GOROOT_FINAL=Git/ GOOS=$(os) GOARCH=$(arch) GOARM=6 go build -o './dist/arozos_$(os)_$(arch)' -ldflags "-s -w" -trimpath
22+
GOROOT_FINAL=Git/ GOOS=$(os) GOARCH=$(arch) $(if $(filter linux/arm,$(os)/$(arch)),GOARM=6,) go build -o './dist/arozos_$(os)_$(arch)' -ldflags "-s -w" -trimpath
2223

2324
fixwindows:
2425
-mv ./dist/arozos_windows_amd64 ./dist/arozos_windows_amd64.exe

src/agi-doc.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ deleteDBItem("tablename", "key");
340340

341341
```
342342
registerModule(JSON.stringify(moduleLaunchInfo)); //See moduleLaunchInfo in the sections above
343-
requirepkg("ffmpeg");
344-
execpkg("ffmpeg",'-i "files/users/TC/Desktop/群青.mp3" "files/users/TC/Desktop/群青.flac'); //ffmpeg must be required() before use
343+
[deprecated] requirepkg("ffmpeg");
344+
[deprecated] execpkg("ffmpeg",'-i "files/users/TC/Desktop/群青.mp3" "files/users/TC/Desktop/群青.flac'); //ffmpeg must be required() before use
345345
```
346346

347347
#### Structure & OOP
@@ -370,9 +370,9 @@ USER_MODULES //Might return ["*"] for admin permission
370370
#### Filepath Virtualization
371371

372372
```
373-
decodeVirtualPath("user:/Desktop"); //Convert virtual path (e.g. user:/Desktop) to real path (e.g. ./files/user/username/Desktop)
374-
decodeAbsoluteVirtualPath("user:/Desktop"); //Same as decodeVirtualPath but return in absolute path instead of relative path from the arozos binary root
375-
encodeRealPath("files/users/User/Desktop"); //Convert realpath into virtual path
373+
[deprecated] decodeVirtualPath("user:/Desktop"); //Convert virtual path (e.g. user:/Desktop) to real path (e.g. ./files/user/username/Desktop)
374+
[deprecated] decodeAbsoluteVirtualPath("user:/Desktop"); //Same as decodeVirtualPath but return in absolute path instead of relative path from the arozos binary root
375+
[deprecated] encodeRealPath("files/users/User/Desktop"); //Convert realpath into virtual path
376376
```
377377

378378
#### Permission Related
@@ -678,6 +678,9 @@ http.download("http://example.com/music.mp3", "user:/Desktop", "(Optional) My Mu
678678
//Since agi v2.0
679679
http.getb64("http://example.com/photo.png"); //Get target resources as base64 bytes, return null if error
680680
http.getCode("http://redirect.example.com"); //Get response code for the target endpoint,if the code is redirection related (e.g. 302), a new varaible "_location" will be created to store the redirection address in String.
681+
682+
//Since agi 2.3
683+
http.redirect("https://example.com", 307); //Redirect to target with status code
681684
```
682685

683686
### websocket

0 commit comments

Comments
 (0)