vibingbase 0.12.34 → 0.12.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/default/.gitattributes.template +1 -0
- package/assets/default/.gitignore.template +24 -0
- package/assets/default/app/entry.client.tsx.template +12 -0
- package/assets/default/app/entry.server.tsx.template +35 -0
- package/assets/default/app/global.d.ts.template +1 -0
- package/assets/default/app/root.tsx.template +49 -0
- package/assets/default/app/routes/index.tsx.template +8 -0
- package/assets/default/app/routes.ts.template +5 -0
- package/assets/default/package.json.template +30 -0
- package/assets/default/react-router.config.js.template +7 -0
- package/assets/default/src-tauri/Cargo.lock.template +5714 -0
- package/assets/default/src-tauri/Cargo.toml.template +22 -0
- package/assets/default/src-tauri/build.rs.template +3 -0
- package/assets/default/src-tauri/capabilities/default.json.template +17 -0
- package/assets/default/src-tauri/icons/128x128.png +0 -0
- package/assets/default/src-tauri/icons/128x128@2x.png +0 -0
- package/assets/default/src-tauri/icons/32x32.png +0 -0
- package/assets/default/src-tauri/icons/64x64.png +0 -0
- package/assets/default/src-tauri/icons/Square107x107Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square142x142Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square150x150Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square284x284Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square30x30Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square310x310Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square44x44Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square71x71Logo.png +0 -0
- package/assets/default/src-tauri/icons/Square89x89Logo.png +0 -0
- package/assets/default/src-tauri/icons/StoreLogo.png +0 -0
- package/assets/default/src-tauri/icons/icon.icns +0 -0
- package/assets/default/src-tauri/icons/icon.ico +0 -0
- package/assets/default/src-tauri/icons/icon.png +0 -0
- package/assets/default/src-tauri/src/lib.rs.template +15 -0
- package/assets/default/src-tauri/src/main.rs.template +6 -0
- package/assets/default/src-tauri/tauri.conf.json.template +62 -0
- package/assets/default/tsconfig.json.template +47 -0
- package/assets/default/vite.config.js.template +13 -0
- package/assets/tailwind/.gitattributes.template +1 -0
- package/assets/tailwind/.gitignore.template +24 -0
- package/assets/tailwind/app/entry.client.css.template +1 -0
- package/assets/tailwind/app/entry.client.tsx.template +14 -0
- package/assets/tailwind/app/entry.server.tsx.template +35 -0
- package/assets/tailwind/app/global.d.ts.template +1 -0
- package/assets/tailwind/app/root.tsx.template +49 -0
- package/assets/tailwind/app/routes/index.tsx.template +10 -0
- package/assets/tailwind/app/routes.ts.template +5 -0
- package/assets/tailwind/package.json.template +32 -0
- package/assets/tailwind/react-router.config.js.template +7 -0
- package/assets/tailwind/src-tauri/Cargo.lock.template +5714 -0
- package/assets/tailwind/src-tauri/Cargo.toml.template +22 -0
- package/assets/tailwind/src-tauri/build.rs.template +3 -0
- package/assets/tailwind/src-tauri/capabilities/default.json.template +17 -0
- package/assets/tailwind/src-tauri/icons/128x128.png +0 -0
- package/assets/tailwind/src-tauri/icons/128x128@2x.png +0 -0
- package/assets/tailwind/src-tauri/icons/32x32.png +0 -0
- package/assets/tailwind/src-tauri/icons/64x64.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square107x107Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square142x142Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square150x150Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square284x284Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square30x30Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square310x310Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square44x44Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square71x71Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/Square89x89Logo.png +0 -0
- package/assets/tailwind/src-tauri/icons/StoreLogo.png +0 -0
- package/assets/tailwind/src-tauri/icons/icon.icns +0 -0
- package/assets/tailwind/src-tauri/icons/icon.ico +0 -0
- package/assets/tailwind/src-tauri/icons/icon.png +0 -0
- package/assets/tailwind/src-tauri/src/lib.rs.template +15 -0
- package/assets/tailwind/src-tauri/src/main.rs.template +6 -0
- package/assets/tailwind/src-tauri/tauri.conf.json.template +62 -0
- package/assets/tailwind/tsconfig.json.template +47 -0
- package/assets/tailwind/vite.config.js.template +19 -0
- package/dist/index.js +2 -1
- package/package.json +11 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "app_<%= id %>_package"
|
|
3
|
+
version = "<%= version %>"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
[lib]
|
|
7
|
+
name = "app_<%= id %>_lib"
|
|
8
|
+
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
9
|
+
|
|
10
|
+
[build-dependencies]
|
|
11
|
+
tauri-build = { version = "2", features = [] }
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
tauri = { version = "2", features = [] }
|
|
15
|
+
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
|
|
16
|
+
tauri-plugin-deep-link = "2"
|
|
17
|
+
tauri-plugin-updater = "2"
|
|
18
|
+
tauri-plugin-opener = "2"
|
|
19
|
+
tauri-plugin-process = "2"
|
|
20
|
+
serde = { version = "1", features = ["derive"] }
|
|
21
|
+
serde_json = "1"
|
|
22
|
+
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../gen/schemas/desktop-schema.json",
|
|
3
|
+
"identifier": "default",
|
|
4
|
+
"description": "Default capabilities for all windows",
|
|
5
|
+
"windows": ["*"],
|
|
6
|
+
"permissions": [
|
|
7
|
+
"core:default",
|
|
8
|
+
"core:app:allow-set-app-theme",
|
|
9
|
+
"core:window:default",
|
|
10
|
+
"core:window:allow-set-theme",
|
|
11
|
+
"core:window:allow-set-focus",
|
|
12
|
+
"deep-link:default",
|
|
13
|
+
"updater:default",
|
|
14
|
+
"opener:default",
|
|
15
|
+
"process:default"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
use tauri::Manager;
|
|
2
|
+
|
|
3
|
+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
4
|
+
pub fn run() {
|
|
5
|
+
tauri::Builder::default()
|
|
6
|
+
.plugin(tauri_plugin_single_instance::init(|app, _argv, _cwd| {
|
|
7
|
+
app.get_webview_window("main").unwrap().set_focus().unwrap();
|
|
8
|
+
}))
|
|
9
|
+
.plugin(tauri_plugin_deep_link::init())
|
|
10
|
+
.plugin(tauri_plugin_updater::Builder::new().build())
|
|
11
|
+
.plugin(tauri_plugin_opener::init())
|
|
12
|
+
.plugin(tauri_plugin_process::init())
|
|
13
|
+
.run(tauri::generate_context!())
|
|
14
|
+
.unwrap();
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
+
"identifier": "com.vibingbase.app-<%= id %>",
|
|
4
|
+
"productName": "<%= name %>",
|
|
5
|
+
"version": "<%= version %>",
|
|
6
|
+
"build": {
|
|
7
|
+
"beforeDevCommand": "pnpm dev",
|
|
8
|
+
"devUrl": "http://localhost:1420",
|
|
9
|
+
"beforeBuildCommand": "pnpm build",
|
|
10
|
+
"frontendDist": "../build/client"
|
|
11
|
+
},
|
|
12
|
+
"bundle": {
|
|
13
|
+
"active": true,
|
|
14
|
+
"createUpdaterArtifacts": true,
|
|
15
|
+
"icon": [
|
|
16
|
+
"icons/32x32.png",
|
|
17
|
+
"icons/64x64.png",
|
|
18
|
+
"icons/128x128.png",
|
|
19
|
+
"icons/128x128@2x.png",
|
|
20
|
+
"icons/icon.png",
|
|
21
|
+
"icons/icon.ico",
|
|
22
|
+
"icons/icon.icns"
|
|
23
|
+
],
|
|
24
|
+
"targets": [
|
|
25
|
+
"app",
|
|
26
|
+
"dmg",
|
|
27
|
+
"nsis"
|
|
28
|
+
],
|
|
29
|
+
"windows": {
|
|
30
|
+
"signCommand": "trusted-signing-cli -e https://eus.codesigning.azure.net -a phuctm97 -c phuctm97 %1"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"app": {
|
|
34
|
+
"windows": [
|
|
35
|
+
{
|
|
36
|
+
"title": "<%= name %>",
|
|
37
|
+
"titleBarStyle": "Transparent",
|
|
38
|
+
"width": 1080,
|
|
39
|
+
"height": 720,
|
|
40
|
+
"minWidth": 900,
|
|
41
|
+
"minHeight": 600,
|
|
42
|
+
"center": true,
|
|
43
|
+
"dragDropEnabled": false
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"plugins": {
|
|
48
|
+
"deep-link": {
|
|
49
|
+
"desktop": {
|
|
50
|
+
"schemes": [
|
|
51
|
+
"app-<%= id %>"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"updater": {
|
|
56
|
+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDkzMEJBRTRGMkZBREIxMTIKUldRU3NhMHZUNjRMazdXcFd4RUxUNXFDK1NBUEJSYjFhZlVXaHI4YVZBOW1QYXRobEt4eTI5QXkK",
|
|
57
|
+
"endpoints": [
|
|
58
|
+
"<%= websiteURL %>/v1/updater/app-<%= id %>"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"**/*",
|
|
4
|
+
"**/*.json",
|
|
5
|
+
"**/.client/**/*",
|
|
6
|
+
"**/.client/**/*.json",
|
|
7
|
+
"**/.server/**/*",
|
|
8
|
+
"**/.server/**/*.json",
|
|
9
|
+
".react-router/types/**/*",
|
|
10
|
+
".react-router/types/**/*.json"
|
|
11
|
+
],
|
|
12
|
+
"exclude": [
|
|
13
|
+
"node_modules",
|
|
14
|
+
"build",
|
|
15
|
+
"public"
|
|
16
|
+
],
|
|
17
|
+
"references": [],
|
|
18
|
+
"compilerOptions": {
|
|
19
|
+
"moduleResolution": "bundler",
|
|
20
|
+
"module": "esnext",
|
|
21
|
+
"target": "es2024",
|
|
22
|
+
"jsx": "react-jsx",
|
|
23
|
+
"lib": [
|
|
24
|
+
"dom",
|
|
25
|
+
"dom.iterable",
|
|
26
|
+
"esnext"
|
|
27
|
+
],
|
|
28
|
+
"strict": true,
|
|
29
|
+
"incremental": true,
|
|
30
|
+
"verbatimModuleSyntax": true,
|
|
31
|
+
"esModuleInterop": true,
|
|
32
|
+
"resolveJsonModule": true,
|
|
33
|
+
"importHelpers": true,
|
|
34
|
+
"allowImportingTsExtensions": true,
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"noEmit": true,
|
|
37
|
+
"rootDirs": [
|
|
38
|
+
".",
|
|
39
|
+
"./.react-router/types"
|
|
40
|
+
],
|
|
41
|
+
"paths": {
|
|
42
|
+
"~/*": [
|
|
43
|
+
"./*"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { reactRouter } from "@react-router/dev/vite";
|
|
2
|
+
import tsconfigPaths from "vite-tsconfig-paths";
|
|
3
|
+
import preserveDirectives from "rollup-preserve-directives";
|
|
4
|
+
|
|
5
|
+
const target = "es2024";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
clearScreen: false,
|
|
9
|
+
esbuild: { target },
|
|
10
|
+
build: { target, chunkSizeWarningLimit: 2048 },
|
|
11
|
+
server: { strictPort: true, port: 1420 },
|
|
12
|
+
plugins: [reactRouter(), tsconfigPaths(), preserveDirectives()],
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/.nx/cache
|
|
2
|
+
/.nx/workspace-data
|
|
3
|
+
/.playwright-mcp
|
|
4
|
+
__MACOSX
|
|
5
|
+
.DS_Store
|
|
6
|
+
*.tsbuildinfo
|
|
7
|
+
*.db
|
|
8
|
+
.vars
|
|
9
|
+
.secrets
|
|
10
|
+
.env
|
|
11
|
+
.env.*
|
|
12
|
+
node_modules
|
|
13
|
+
dist
|
|
14
|
+
.react-router
|
|
15
|
+
build
|
|
16
|
+
next-env.d.ts
|
|
17
|
+
.next
|
|
18
|
+
out
|
|
19
|
+
.source
|
|
20
|
+
.vercel
|
|
21
|
+
target
|
|
22
|
+
gen
|
|
23
|
+
tsconfig.api-extractor.json
|
|
24
|
+
.api-extractor
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./entry.client.css";
|
|
2
|
+
|
|
3
|
+
import { startTransition, StrictMode } from "react";
|
|
4
|
+
import { hydrateRoot } from "react-dom/client";
|
|
5
|
+
import { HydratedRouter } from "react-router/dom";
|
|
6
|
+
|
|
7
|
+
startTransition(() => {
|
|
8
|
+
hydrateRoot(
|
|
9
|
+
document,
|
|
10
|
+
<StrictMode>
|
|
11
|
+
<HydratedRouter />
|
|
12
|
+
</StrictMode>,
|
|
13
|
+
);
|
|
14
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
HandleDocumentRequestFunction,
|
|
3
|
+
HandleErrorFunction,
|
|
4
|
+
} from "react-router";
|
|
5
|
+
|
|
6
|
+
import { handleRequest } from "@vercel/react-router/entry.server";
|
|
7
|
+
import { isRouteErrorResponse } from "react-router";
|
|
8
|
+
|
|
9
|
+
export const streamTimeout = 5000;
|
|
10
|
+
|
|
11
|
+
export const handleError: HandleErrorFunction = (error, { request }) => {
|
|
12
|
+
if (
|
|
13
|
+
request.signal.aborted ||
|
|
14
|
+
(isRouteErrorResponse(error) && error.status < 500)
|
|
15
|
+
)
|
|
16
|
+
return;
|
|
17
|
+
console.error(error);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const handleDocumentRequest: HandleDocumentRequestFunction = async (
|
|
21
|
+
request,
|
|
22
|
+
responseStatusCode,
|
|
23
|
+
responseHeaders,
|
|
24
|
+
routerContext,
|
|
25
|
+
) => {
|
|
26
|
+
const response = await handleRequest(
|
|
27
|
+
request,
|
|
28
|
+
responseStatusCode,
|
|
29
|
+
responseHeaders,
|
|
30
|
+
routerContext,
|
|
31
|
+
);
|
|
32
|
+
return response;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default handleDocumentRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
|
|
3
|
+
import type { Route } from "./+types/root";
|
|
4
|
+
|
|
5
|
+
import { useEffect } from "react";
|
|
6
|
+
import {
|
|
7
|
+
isRouteErrorResponse,
|
|
8
|
+
Links,
|
|
9
|
+
Meta,
|
|
10
|
+
Outlet,
|
|
11
|
+
Scripts,
|
|
12
|
+
ScrollRestoration,
|
|
13
|
+
} from "react-router";
|
|
14
|
+
|
|
15
|
+
export const meta: Route.MetaFunction = () => [{ title: "Vibingbase" }];
|
|
16
|
+
|
|
17
|
+
export function Layout({ children }: PropsWithChildren) {
|
|
18
|
+
return (
|
|
19
|
+
<html lang="en">
|
|
20
|
+
<head>
|
|
21
|
+
<meta charSet="utf-8" />
|
|
22
|
+
<meta content="width=device-width, initial-scale=1" name="viewport" />
|
|
23
|
+
<Meta />
|
|
24
|
+
<Links />
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
{children}
|
|
28
|
+
<ScrollRestoration />
|
|
29
|
+
<Scripts />
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (isRouteErrorResponse(error) && error.status < 500) return;
|
|
38
|
+
console.error(error);
|
|
39
|
+
}, [error]);
|
|
40
|
+
return <p>{String(error)}</p>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function HydrateFallback() {
|
|
44
|
+
return <p>Loading…</p>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default function Component() {
|
|
48
|
+
return <Outlet />;
|
|
49
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "project",
|
|
3
|
+
"version": "<%= version %>",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@vercel/react-router": "^1.2.4",
|
|
8
|
+
"react": "^19.2.3",
|
|
9
|
+
"react-dom": "^19.2.3",
|
|
10
|
+
"react-router": "^7.11.0",
|
|
11
|
+
"tslib": "^2.8.1"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@react-router/dev": "^7.11.0",
|
|
15
|
+
"@react-router/node": "^7.11.0",
|
|
16
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
17
|
+
"@types/node": "^24.10.2",
|
|
18
|
+
"@types/react": "^19.2.7",
|
|
19
|
+
"@types/react-dom": "^19.2.3",
|
|
20
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
21
|
+
"tailwindcss": "^4.1.18",
|
|
22
|
+
"typescript": "^5.8.2",
|
|
23
|
+
"vite": "^7.3.0",
|
|
24
|
+
"vite-tsconfig-paths": "^6.0.3"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"prepare": "react-router typegen",
|
|
28
|
+
"dev": "react-router dev",
|
|
29
|
+
"build": "react-router build"
|
|
30
|
+
},
|
|
31
|
+
"packageManager": "pnpm@10.26.1"
|
|
32
|
+
}
|