diff --git a/package.json b/package.json
index 3a4cae1..638c23c 100644
--- a/package.json
+++ b/package.json
@@ -7,8 +7,9 @@
},
"type": "module",
"scripts": {
- "dev": "vite --open",
+ "dev": "vite",
"build": "vite build",
+ "build:tizen": "vite build --outDir tizen/dist",
"preview": "vite preview",
"deploy": "PORT=9494 NODE_ENV=production node build/",
"deploy:electron": "vite build && electron-builder -mw --x64 --config build.config.json; electron-builder -m --arm64 --config build.config.json",
diff --git a/src/App.svelte b/src/App.svelte
index fcb5666..78eb453 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -1,7 +1,7 @@
@@ -31,7 +31,7 @@
})}
>
-
+
Reiverr
@@ -65,7 +65,7 @@
-
+
diff --git a/src/lib/actions/focusAction.ts b/src/lib/actions/focusAction.ts
index f69aaff..161e69b 100644
--- a/src/lib/actions/focusAction.ts
+++ b/src/lib/actions/focusAction.ts
@@ -1,4 +1,5 @@
import { derived, get, type Readable, type Writable, writable } from 'svelte/store';
+import { navigate } from 'svelte-navigator';
export type Registerer = (htmlElement: HTMLElement) => { destroy: () => void };
@@ -228,6 +229,7 @@ export function handleKeyboardNavigation(event: KeyboardEvent) {
if (!currentlyFocusedObject) {
console.error('No focused object!!!');
+ mainContainer.focus();
return;
}
@@ -245,3 +247,6 @@ export function handleKeyboardNavigation(event: KeyboardEvent) {
}
export const focusedObject = Container.focusedObject;
+export const mainContainer = new Container('main')
+ .setDirection('horizontal')
+ .setFocusByDefault(true);
diff --git a/tizen/.gitignore b/tizen/.gitignore
new file mode 100644
index 0000000..a3a8fd4
--- /dev/null
+++ b/tizen/.gitignore
@@ -0,0 +1,2 @@
+.sign/*
+*.wgt
\ No newline at end of file
diff --git a/tizen/.project b/tizen/.project
new file mode 100644
index 0000000..a9c109f
--- /dev/null
+++ b/tizen/.project
@@ -0,0 +1,24 @@
+
+
+ Reiverr
+
+
+
+
+
+ json.validation.builder
+
+
+
+
+ org.tizen.web.project.builder.WebBuilder
+
+
+
+
+
+ json.validation.nature
+ org.eclipse.wst.jsdt.core.jsNature
+ org.tizen.web.project.builder.WebNature
+
+
diff --git a/tizen/.tproject b/tizen/.tproject
new file mode 100644
index 0000000..bb24741
--- /dev/null
+++ b/tizen/.tproject
@@ -0,0 +1,11 @@
+
+
+
+
+ tv-samsung-7.0
+
+
+
+
+
+
diff --git a/tizen/config.xml b/tizen/config.xml
new file mode 100644
index 0000000..34b6468
--- /dev/null
+++ b/tizen/config.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+ SvelteTizen
+
+
+
diff --git a/tizen/icon.png b/tizen/icon.png
new file mode 100644
index 0000000..9765b1b
Binary files /dev/null and b/tizen/icon.png differ
diff --git a/tizen/images/tizen_32.png b/tizen/images/tizen_32.png
new file mode 100644
index 0000000..647c3f9
Binary files /dev/null and b/tizen/images/tizen_32.png differ
diff --git a/tizen/index.html b/tizen/index.html
new file mode 100644
index 0000000..bd68d59
--- /dev/null
+++ b/tizen/index.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+ Tizen Web IDE - Tizen - Samsung Tizen TV basic Application
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vite.config.ts b/vite.config.ts
index dc1d848..a105265 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -5,7 +5,8 @@ import viteLegacyPlugin from '@vitejs/plugin-legacy';
// https://vitejs.dev/config/
export default defineConfig({
- plugins: [viteLegacyPlugin(), svelte(), viteSingleFile()]
+ plugins: [viteLegacyPlugin(), svelte(), viteSingleFile()],
+ optimizeDeps: { exclude: ['svelte-navigator'] }
// base: '/dist',
// experimental: {