-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b64f8a6
commit 3da9382
Showing
1,337 changed files
with
91,876 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <karm-kira/scaffold.h> | ||
#include <karm-ui/layout.h> | ||
#include <mdi/grid.h> | ||
|
||
#include "game.h" | ||
|
||
namespace Hideo::H2048 { | ||
|
||
Ui::Child game() { | ||
return Kr::scaffold({ | ||
.icon = Mdi::GRID, | ||
.title = "2048"s, | ||
.body = slot$(Ui::empty()), | ||
}); | ||
} | ||
|
||
} // namespace Hideo::H2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <karm-ui/node.h> | ||
|
||
namespace Hideo::H2048 { | ||
|
||
Ui::Child game(); | ||
|
||
} // namespace Hideo::H2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <karm-sys/entry.h> | ||
#include <karm-ui/app.h> | ||
|
||
#include "../game.h" | ||
|
||
Async::Task<> entryPointAsync(Sys::Context &ctx) { | ||
co_return Ui::runApp( | ||
ctx, | ||
Hideo::H2048::game() | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-2048.main", | ||
"props": { | ||
"cpp-excluded": true | ||
}, | ||
"type": "exe", | ||
"requires": [ | ||
"hideo-2048" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-2048", | ||
"type": "lib", | ||
"description": "Merge the numbers to get to the 2048 tile!", | ||
"requires": [ | ||
"karm-kira" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#include <karm-base/witty.h> | ||
#include <karm-image/loader.h> | ||
#include <karm-kira/about-dialog.h> | ||
#include <karm-kira/badge.h> | ||
#include <karm-kira/scaffold.h> | ||
#include <karm-sys/time.h> | ||
#include <karm-ui/dialog.h> | ||
#include <karm-ui/input.h> | ||
#include <karm-ui/layout.h> | ||
#include <karm-ui/view.h> | ||
#include <mdi/information.h> | ||
#include <mdi/license.h> | ||
|
||
namespace Hideo::About { | ||
|
||
Ui::Child app() { | ||
return Kr::scaffold({ | ||
.icon = Mdi::INFORMATION, | ||
.title = "About"s, | ||
.titlebar = Kr::TitlebarStyle::DIALOG, | ||
.body = | ||
[] { | ||
auto titleText = Ui::headlineMedium("skiftOS"); | ||
|
||
auto bodyText = | ||
Ui::bodySmall("Copyright © 2018-2024 The skiftOS Developers\n" | ||
"Copyright © 2024 Odoo S.A.\n" | ||
"\n" | ||
"All rights reserved."); | ||
|
||
auto inspireMe = Ui::state(Sys::now().val(), [](auto v, auto bind) { | ||
auto body = Ui::hflow( | ||
8, Math::Align::CENTER, | ||
Ui::image(Image::load("bundle://hideo-about/pride.qoi"_url).unwrap(), 4), | ||
Ui::bodySmall(wholesome(v)) | ||
); | ||
|
||
return body | Ui::insets({6, 16, 6, 12}) | | ||
Ui::minSize({Ui::UNCONSTRAINED, 36}) | | ||
Ui::button(bind(v + 1), Ui::ButtonStyle::subtle()); | ||
}); | ||
|
||
auto licenseBtn = Ui::button( | ||
[](auto &n) { | ||
Ui::showDialog(n, Kr::licenseDialog()); | ||
}, | ||
Ui::ButtonStyle::outline(), Mdi::LICENSE, "License" | ||
); | ||
|
||
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)) | | ||
Ui::insets(16); | ||
}, | ||
.size = {460, 320}, | ||
}); | ||
} | ||
|
||
} // namespace Hideo::About |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <karm-ui/node.h> | ||
|
||
namespace Hideo::About { | ||
|
||
Ui::Child app(); | ||
|
||
} // namespace Hideo::About |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <karm-sys/entry.h> | ||
#include <karm-ui/app.h> | ||
|
||
#include "../app.h" | ||
|
||
Async::Task<> entryPointAsync(Sys::Context &ctx) { | ||
co_return Ui::runApp(ctx, Hideo::About::app()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-about.main", | ||
"props": { | ||
"cpp-excluded": true | ||
}, | ||
"type": "exe", | ||
"requires": [ | ||
"hideo-about" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-about", | ||
"type": "lib", | ||
"description": "About the skift operating system", | ||
"requires": [ | ||
"karm-kira" | ||
] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <karm-kira/scaffold.h> | ||
#include <karm-ui/layout.h> | ||
#include <mdi/basket.h> | ||
|
||
#include "app.h" | ||
|
||
namespace Hideo::Apps { | ||
|
||
Ui::Child app() { | ||
return Kr::scaffold({ | ||
.icon = Mdi::BASKET, | ||
.title = "Apps"s, | ||
.body = slot$(Ui::empty()), | ||
}); | ||
} | ||
|
||
} // namespace Hideo::Apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <karm-ui/node.h> | ||
|
||
namespace Hideo::Apps { | ||
|
||
Ui::Child app(); | ||
|
||
} // namespace Hideo::Apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <karm-sys/entry.h> | ||
#include <karm-ui/app.h> | ||
|
||
#include "../app.h" | ||
|
||
Async::Task<> entryPointAsync(Sys::Context &ctx) { | ||
co_return Ui::runApp( | ||
ctx, | ||
Hideo::Apps::app() | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-apps.main", | ||
"props": { | ||
"cpp-excluded": true | ||
}, | ||
"type": "exe", | ||
"requires": [ | ||
"hideo-apps" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-apps", | ||
"type": "lib", | ||
"description": "Install, update, and manage application", | ||
"requires": [ | ||
"karm-kira" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <karm-kira/scaffold.h> | ||
#include <karm-ui/layout.h> | ||
#include <mdi/play-circle.h> | ||
|
||
#include "app.h" | ||
|
||
namespace Hideo::Avplayer { | ||
|
||
Ui::Child app() { | ||
return Kr::scaffold({ | ||
.icon = Mdi::PLAY_CIRCLE, | ||
.title = "Media Player"s, | ||
.body = slot$(Ui::empty()), | ||
}); | ||
} | ||
|
||
} // namespace Hideo::Avplayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#pragma once | ||
|
||
#include <karm-ui/node.h> | ||
|
||
namespace Hideo::Avplayer { | ||
|
||
Ui::Child app(); | ||
|
||
} // namespace Hideo::Avplayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <karm-sys/entry.h> | ||
#include <karm-ui/app.h> | ||
|
||
#include "../app.h" | ||
|
||
Async::Task<> entryPointAsync(Sys::Context &ctx) { | ||
co_return Ui::runApp( | ||
ctx, | ||
Hideo::Avplayer::app() | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-avplayer.main", | ||
"props": { | ||
"cpp-excluded": true | ||
}, | ||
"type": "exe", | ||
"requires": [ | ||
"hideo-avplayer" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.component.v1", | ||
"id": "hideo-avplayer", | ||
"type": "lib", | ||
"description": "Play audio and video", | ||
"requires": [ | ||
"karm-kira" | ||
] | ||
} |
Oops, something went wrong.