Compare commits

...

5 Commits

Author SHA1 Message Date
8cb9b62b9d Delete commented code 2023-04-13 18:03:07 +03:00
c4d3eae21a Add dock icons for mobile site 2023-04-13 18:02:58 +03:00
0f7ef6cd31 Fix icons render 2023-04-13 18:02:45 +03:00
44748f8070 Add about-me app open from mob Desktop 2023-04-13 18:02:35 +03:00
6949d77584 Add mac os icons 2023-04-13 18:02:19 +03:00
8 changed files with 41 additions and 16 deletions

11
main.go
View File

@ -79,14 +79,10 @@ func main() {
} }
websiteapp.Route(apps.Group("/storage"), &appsStorage) websiteapp.Route(apps.Group("/storage"), &appsStorage)
// personalpropsroute.Route(apps.Group("/personalproperties"))
} }
app := router.Group("application") app := router.Group("application")
{ {
// app.GET("test", func(ctx *gin.Context) {
// ctx.Status(http.StatusOK)
// })
persPropApp := app.Group("personal-properties") persPropApp := app.Group("personal-properties")
{ {
persPropApp.GET("render", func(ctx *gin.Context) { persPropApp.GET("render", func(ctx *gin.Context) {
@ -132,14 +128,7 @@ func main() {
router.GET("/test", func(ctx *gin.Context) { router.GET("/test", func(ctx *gin.Context) {
ctx.HTML(200, "kek/kek.tmpl", gin.H{}) ctx.HTML(200, "kek/kek.tmpl", gin.H{})
}) })
// router.GET("/room/:roomid", roomGET)
// router.POST("/room-post/:roomid", roomPOST)
// router.GET("/stream/:roomid", streamRoom)
// port := os.Getenv("PORT")
// if port == "" {
// port = "8080"
// }
if err := router.Run(":8080"); err != nil { if err := router.Run(":8080"); err != nil {
log.Panicf("error: %s", err) log.Panicf("error: %s", err)
} }

BIN
resources/sys/wde/icons/about-me.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/sys/wde/icons/desktop.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
resources/sys/wde/icons/folder.png (Stored with Git LFS)

Binary file not shown.

BIN
resources/sys/wde/icons/trash.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -41,6 +41,10 @@ class WebDesktopEnvironment{
WebDesktopEnvironment.LoadApp("finder", () =>{ WebDesktopEnvironment.LoadApp("finder", () =>{
console.log("lel") console.log("lel")
new FileView("/kek", mobileDesktop.querySelector(".FileTileView"), Finder.Click) new FileView("/kek", mobileDesktop.querySelector(".FileTileView"), Finder.Click)
mobileDesktop.querySelector('#about-me').addEventListener('click', (event) => {
WebDesktopEnvironment.Open("personal-properties", [])
})
}) })
}).then(()=>{ }).then(()=>{

View File

@ -289,6 +289,7 @@
/* overflow-x: hidden; */ /* overflow-x: hidden; */
scrollbar-width: none; /* Firefox */ scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */ -ms-overflow-style: none; /* Internet Explorer 10+ */
} }
.FileTileView::-webkit-scrollbar { /* WebKit */ .FileTileView::-webkit-scrollbar { /* WebKit */
@ -313,4 +314,17 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
background-image: url("sys/wde/icons/folder.png"); background-image: url("sys/wde/icons/folder.png");
background-size: cover;
image-rendering: optimizeSpeed; /* STOP SMOOTHING, GIVE ME SPEED */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering: pixelated; /* Universal support since 2021 */
image-rendering: optimize-contrast; /* CSS3 Proposed */
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
}
.FileTileTitle{
} }

View File

@ -7,9 +7,18 @@
</div> </div>
</div> </div>
<div id="toolbar"> <div id="toolbar">
<button>Back</button> <div id="about-me" class="FileTile" >
<button>Home</button> <div class="FileTileIcon NoClick" style="background-image: url('./res/sys/wde/icons/about-me.png');"></div>
<button>Close</button> <div class="FileTileTitle NoClick">About Me</div>
</div>
<div id="Home" class="FileTile">
<div class="FileTileIcon NoClick" style="background-image: url('./res/sys/wde/icons/desktop.png');"></div>
<div class="FileTileTitle NoClick">Home</div>
</div>
<div id="Home" class="FileTile">
<div class="FileTileIcon NoClick" style="background-image: url('./res/sys/wde/icons/trash.png');"></div>
<div class="FileTileTitle NoClick">Close</div>
</div>
</div> </div>
{{ end }} {{ end }}