Skip to content

Commit 3da9382

Browse files
committed
meta: Bring all ma boi home.
1 parent b64f8a6 commit 3da9382

File tree

1,337 files changed

+91876
-9
lines changed

Some content is hidden

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

1,337 files changed

+91876
-9
lines changed

project.json

+33-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,41 @@
44
"type": "project",
55
"description": "The Skift Operating System",
66
"extern": {
7-
"skift-org/hideo": {
8-
"git": "https://github.com/skift-org/hideo.git",
9-
"tag": "v0.1.0"
7+
"cute-engineering/ce-heap": {
8+
"git": "https://github.com/cute-engineering/ce-heap.git",
9+
"tag": "v1.1.0"
1010
},
11-
"skift-org/karm": {
12-
"git": "https://github.com/skift-org/karm.git",
13-
"tag": "v0.1.3"
11+
"cute-engineering/ce-mdi": {
12+
"git": "https://github.com/cute-engineering/ce-mdi.git",
13+
"tag": "v0.2.0"
1414
},
15-
"odoo/paper-muncher": {
16-
"git": "https://github.com/odoo/paper-muncher",
17-
"tag": "v0.1.2"
15+
"cute-engineering/ce-libc": {
16+
"git": "https://github.com/cute-engineering/ce-libc.git",
17+
"tag": "v1.1.0"
18+
},
19+
"cute-engineering/ce-libm": {
20+
"git": "https://github.com/cute-engineering/ce-libm.git",
21+
"tag": "v1.0.2"
22+
},
23+
"cute-engineering/ce-stdcpp": {
24+
"git": "https://github.com/cute-engineering/ce-stdcpp.git",
25+
"tag": "v1.3.0"
26+
},
27+
"cute-engineering/cat": {
28+
"git": "https://github.com/cute-engineering/cat.git",
29+
"tag": "v0.7.4"
30+
},
31+
"sdl2": {
32+
"description": "A cross-platform development library designed to provide low level access to hardware",
33+
"names": [
34+
"sdl2"
35+
]
36+
},
37+
"uring": {
38+
"description": "Linux io_uring library",
39+
"names": [
40+
"liburing"
41+
]
1842
}
1943
}
2044
}

src/apps/hideo-2048/game.cpp

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <karm-kira/scaffold.h>
2+
#include <karm-ui/layout.h>
3+
#include <mdi/grid.h>
4+
5+
#include "game.h"
6+
7+
namespace Hideo::H2048 {
8+
9+
Ui::Child game() {
10+
return Kr::scaffold({
11+
.icon = Mdi::GRID,
12+
.title = "2048"s,
13+
.body = slot$(Ui::empty()),
14+
});
15+
}
16+
17+
} // namespace Hideo::H2048

src/apps/hideo-2048/game.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <karm-ui/node.h>
4+
5+
namespace Hideo::H2048 {
6+
7+
Ui::Child game();
8+
9+
} // namespace Hideo::H2048

src/apps/hideo-2048/main/main.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <karm-sys/entry.h>
2+
#include <karm-ui/app.h>
3+
4+
#include "../game.h"
5+
6+
Async::Task<> entryPointAsync(Sys::Context &ctx) {
7+
co_return Ui::runApp(
8+
ctx,
9+
Hideo::H2048::game()
10+
);
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-2048.main",
4+
"props": {
5+
"cpp-excluded": true
6+
},
7+
"type": "exe",
8+
"requires": [
9+
"hideo-2048"
10+
]
11+
}

src/apps/hideo-2048/manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-2048",
4+
"type": "lib",
5+
"description": "Merge the numbers to get to the 2048 tile!",
6+
"requires": [
7+
"karm-kira"
8+
]
9+
}

src/apps/hideo-about/app.cpp

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#include <karm-base/witty.h>
2+
#include <karm-image/loader.h>
3+
#include <karm-kira/about-dialog.h>
4+
#include <karm-kira/badge.h>
5+
#include <karm-kira/scaffold.h>
6+
#include <karm-sys/time.h>
7+
#include <karm-ui/dialog.h>
8+
#include <karm-ui/input.h>
9+
#include <karm-ui/layout.h>
10+
#include <karm-ui/view.h>
11+
#include <mdi/information.h>
12+
#include <mdi/license.h>
13+
14+
namespace Hideo::About {
15+
16+
Ui::Child app() {
17+
return Kr::scaffold({
18+
.icon = Mdi::INFORMATION,
19+
.title = "About"s,
20+
.titlebar = Kr::TitlebarStyle::DIALOG,
21+
.body =
22+
[] {
23+
auto titleText = Ui::headlineMedium("skiftOS");
24+
25+
auto bodyText =
26+
Ui::bodySmall("Copyright © 2018-2024 The skiftOS Developers\n"
27+
"Copyright © 2024 Odoo S.A.\n"
28+
"\n"
29+
"All rights reserved.");
30+
31+
auto inspireMe = Ui::state(Sys::now().val(), [](auto v, auto bind) {
32+
auto body = Ui::hflow(
33+
8, Math::Align::CENTER,
34+
Ui::image(Image::load("bundle://hideo-about/pride.qoi"_url).unwrap(), 4),
35+
Ui::bodySmall(wholesome(v))
36+
);
37+
38+
return body | Ui::insets({6, 16, 6, 12}) |
39+
Ui::minSize({Ui::UNCONSTRAINED, 36}) |
40+
Ui::button(bind(v + 1), Ui::ButtonStyle::subtle());
41+
});
42+
43+
auto licenseBtn = Ui::button(
44+
[](auto &n) {
45+
Ui::showDialog(n, Kr::licenseDialog());
46+
},
47+
Ui::ButtonStyle::outline(), Mdi::LICENSE, "License"
48+
);
49+
50+
return Ui::vflow(8, Ui::hflow(8, titleText, Kr::versionBadge() | Ui::center()), Ui::empty(), bodyText, Ui::grow(NONE), Ui::hflow(8, inspireMe | Ui::vcenter() | Ui::grow(), licenseBtn)) |
51+
Ui::insets(16);
52+
},
53+
.size = {460, 320},
54+
});
55+
}
56+
57+
} // namespace Hideo::About

src/apps/hideo-about/app.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <karm-ui/node.h>
4+
5+
namespace Hideo::About {
6+
7+
Ui::Child app();
8+
9+
} // namespace Hideo::About

src/apps/hideo-about/main/main.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <karm-sys/entry.h>
2+
#include <karm-ui/app.h>
3+
4+
#include "../app.h"
5+
6+
Async::Task<> entryPointAsync(Sys::Context &ctx) {
7+
co_return Ui::runApp(ctx, Hideo::About::app());
8+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-about.main",
4+
"props": {
5+
"cpp-excluded": true
6+
},
7+
"type": "exe",
8+
"requires": [
9+
"hideo-about"
10+
]
11+
}

src/apps/hideo-about/manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-about",
4+
"type": "lib",
5+
"description": "About the skift operating system",
6+
"requires": [
7+
"karm-kira"
8+
]
9+
}

src/apps/hideo-about/res/pride.qoi

651 Bytes
Binary file not shown.

src/apps/hideo-apps/app.cpp

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <karm-kira/scaffold.h>
2+
#include <karm-ui/layout.h>
3+
#include <mdi/basket.h>
4+
5+
#include "app.h"
6+
7+
namespace Hideo::Apps {
8+
9+
Ui::Child app() {
10+
return Kr::scaffold({
11+
.icon = Mdi::BASKET,
12+
.title = "Apps"s,
13+
.body = slot$(Ui::empty()),
14+
});
15+
}
16+
17+
} // namespace Hideo::Apps

src/apps/hideo-apps/app.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <karm-ui/node.h>
4+
5+
namespace Hideo::Apps {
6+
7+
Ui::Child app();
8+
9+
} // namespace Hideo::Apps

src/apps/hideo-apps/main/main.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <karm-sys/entry.h>
2+
#include <karm-ui/app.h>
3+
4+
#include "../app.h"
5+
6+
Async::Task<> entryPointAsync(Sys::Context &ctx) {
7+
co_return Ui::runApp(
8+
ctx,
9+
Hideo::Apps::app()
10+
);
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-apps.main",
4+
"props": {
5+
"cpp-excluded": true
6+
},
7+
"type": "exe",
8+
"requires": [
9+
"hideo-apps"
10+
]
11+
}

src/apps/hideo-apps/manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-apps",
4+
"type": "lib",
5+
"description": "Install, update, and manage application",
6+
"requires": [
7+
"karm-kira"
8+
]
9+
}

src/apps/hideo-avplayer/app.cpp

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <karm-kira/scaffold.h>
2+
#include <karm-ui/layout.h>
3+
#include <mdi/play-circle.h>
4+
5+
#include "app.h"
6+
7+
namespace Hideo::Avplayer {
8+
9+
Ui::Child app() {
10+
return Kr::scaffold({
11+
.icon = Mdi::PLAY_CIRCLE,
12+
.title = "Media Player"s,
13+
.body = slot$(Ui::empty()),
14+
});
15+
}
16+
17+
} // namespace Hideo::Avplayer

src/apps/hideo-avplayer/app.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#pragma once
2+
3+
#include <karm-ui/node.h>
4+
5+
namespace Hideo::Avplayer {
6+
7+
Ui::Child app();
8+
9+
} // namespace Hideo::Avplayer

src/apps/hideo-avplayer/main/main.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <karm-sys/entry.h>
2+
#include <karm-ui/app.h>
3+
4+
#include "../app.h"
5+
6+
Async::Task<> entryPointAsync(Sys::Context &ctx) {
7+
co_return Ui::runApp(
8+
ctx,
9+
Hideo::Avplayer::app()
10+
);
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-avplayer.main",
4+
"props": {
5+
"cpp-excluded": true
6+
},
7+
"type": "exe",
8+
"requires": [
9+
"hideo-avplayer"
10+
]
11+
}

src/apps/hideo-avplayer/manifest.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1",
3+
"id": "hideo-avplayer",
4+
"type": "lib",
5+
"description": "Play audio and video",
6+
"requires": [
7+
"karm-kira"
8+
]
9+
}

0 commit comments

Comments
 (0)