Skip to content

Commit 1e00a2e

Browse files
committed
Add remaining empty indicator to editor tabs
1 parent 280a1e7 commit 1e00a2e

File tree

10 files changed

+150
-154
lines changed

10 files changed

+150
-154
lines changed

app/android/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
artifactory (3.0.17)
1212
atomos (0.1.3)
1313
aws-eventstream (1.3.2)
14-
aws-partitions (1.1081.0)
14+
aws-partitions (1.1082.0)
1515
aws-sdk-core (3.222.1)
1616
aws-eventstream (~> 1, >= 1.3.0)
1717
aws-partitions (~> 1, >= 1.992.0)

app/lib/pages/editor/backgrounds.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ class BackgroundsEditorPage extends StatelessWidget {
2222
child: BlocBuilder<EditorCubit, SetonixData>(
2323
builder: (context, state) {
2424
final backgrounds = state.getBackgroundItems();
25+
if (backgrounds.isEmpty) {
26+
return Center(
27+
child: Padding(
28+
padding: const EdgeInsets.all(8.0),
29+
child: Text(AppLocalizations.of(context).noData),
30+
),
31+
);
32+
}
2533
return Column(
2634
children: backgrounds.map((background) {
2735
final id = background.id;

app/lib/pages/editor/decks.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ class DecksEditorPage extends StatelessWidget {
2222
child: BlocBuilder<EditorCubit, SetonixData>(
2323
builder: (context, state) {
2424
final decks = state.getDeckItems();
25+
if (decks.isEmpty) {
26+
return Center(
27+
child: Padding(
28+
padding: const EdgeInsets.all(8.0),
29+
child: Text(AppLocalizations.of(context).noData),
30+
),
31+
);
32+
}
2533
return Column(
2634
children: decks.map((deck) {
2735
final id = deck.id;

app/lib/pages/editor/textures.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ class _TexturesColumn extends StatelessWidget {
143143

144144
@override
145145
Widget build(BuildContext context) {
146+
if (textures.isEmpty) {
147+
return Center(
148+
child: Padding(
149+
padding: const EdgeInsets.all(8.0),
150+
child: Text(AppLocalizations.of(context).noData),
151+
),
152+
);
153+
}
146154
return Column(
147155
children: textures.entries.map((entry) {
148156
final texture = entry.key;

docs/astro.config.mjs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,22 @@ export default defineConfig({
1616
starlight({
1717
title: "Linwood Setonix",
1818
customCss: ["./src/styles/custom.css"],
19-
social: {
20-
github: "https://github.com/withastro/starlight",
21-
},
22-
social: {
23-
mastodon: "https://floss.social/@linwood",
24-
matrix: "https://linwood.dev/matrix",
25-
discord: "https://linwood.dev/discord",
26-
github: "https://github.com/LinwoodDev/Setonix",
27-
},
28-
logo: {
29-
src: "./public/img/logo.svg",
30-
},
31-
favicon: "./img/docs.svg",
19+
social: [
20+
{icon: "mastodon", label: "Mastodon", href: "https://floss.social/@linwood"},
21+
{icon: "matrix", label: "Matrix", href: "https://linwood.dev/matrix"},
22+
{icon: "discord", label: "Discord", href: "https://linwood.dev/discord"},
23+
{icon: "blueSky", label: "Bluesky", href: "https://bsky.app/profile/linwood.dev"},
24+
{icon: "github", label: "GitHub", href: "https://github.com/LinwoodDev/Butterfly"},
25+
],
3226
components: {
33-
SocialIcons: "./src/components/CustomSocialIcons.astro",
3427
Head: "./src/components/Head.astro",
3528
Footer: "./src/components/Footer.astro",
3629
ContentPanel: "./src/components/ContentPanel.astro",
3730
},
31+
logo: {
32+
src: "./public/img/logo.svg",
33+
},
34+
favicon: "./img/docs.svg",
3835
sidebar: [
3936
{
4037
label: "Guides",

docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/check": "^0.9.4",
1414
"@astrojs/react": "^4.2.3",
15-
"@astrojs/starlight": "^0.32.5",
15+
"@astrojs/starlight": "^0.33.0",
1616
"@phosphor-icons/react": "^2.1.7",
1717
"@types/react": "^19.1.0",
1818
"@types/react-dom": "^19.1.1",
@@ -21,13 +21,13 @@
2121
"react-dom": "^19.1.0",
2222
"remark-gemoji": "^8.0.0",
2323
"remark-heading-id": "^1.0.1",
24-
"typescript": "^5.8.2"
24+
"typescript": "^5.8.3"
2525
},
26-
"packageManager": "pnpm@10.7.1",
26+
"packageManager": "pnpm@10.8.0",
2727
"devDependencies": {
2828
"@vite-pwa/astro": "^1.0.0",
2929
"sass": "^1.86.3",
30-
"sharp": "^0.34.0",
30+
"sharp": "^0.34.1",
3131
"vite-plugin-pwa": "^1.0.0",
3232
"workbox-window": "^7.3.0"
3333
}

0 commit comments

Comments
 (0)