Skip to content

Commit 12bd411

Browse files
committed
machine-setup: init
1 parent 7bea39e commit 12bd411

File tree

15 files changed

+280
-0
lines changed

15 files changed

+280
-0
lines changed

packages/machine-setup/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Developer tools' files
2+
.lite_workspace.lua
3+
4+
# Neutralinojs binaries and builds
5+
/bin
6+
/dist
7+
8+
# Neutralinojs client (minified)
9+
neutralino.js
10+
11+
# Neutralinojs related files
12+
.storage
13+
*.log
14+
.tmp
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<script src="__neutralino_globals.js"></script>
8+
<title>@Hydro/XCPC-TOOLS/MACHINE-SETUP</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "@hydrooj/xcpc-tools-setup-app-frontend",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc -b && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@neutralinojs/lib": "^5.0.0",
13+
"vue": "^3.4.19"
14+
},
15+
"devDependencies": {
16+
"@vitejs/plugin-vue": "^5.0.4",
17+
"naive-ui": "^2.40.1",
18+
"typescript": "~5.4.5",
19+
"vite": "^5.1.4",
20+
"vue-tsc": "^2.1.6"
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template>
2+
<h1>@Hydro/XCPC-TOOLS Setup-Tool</h1>
3+
</template>
4+
5+
<script setup lang="ts">
6+
7+
</script>
8+
9+
<style scoped>
10+
11+
.logo {
12+
height: 6em;
13+
padding: 1.5em;
14+
will-change: filter;
15+
transition: filter 300ms;
16+
}
17+
.logo:hover {
18+
filter: drop-shadow(0 0 2em #646cffaa);
19+
}
20+
.logo.vue:hover {
21+
filter: drop-shadow(0 0 2em #42b883aa);
22+
}
23+
</style>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import './style.css';
2+
3+
import { app, events, init } from '@neutralinojs/lib';
4+
import {
5+
create, NButton, NCard, NConfigProvider, NGi, NGrid, NSpace, NStatistic,
6+
} from 'naive-ui';
7+
import { createApp } from 'vue';
8+
import App from './App.vue';
9+
10+
const naive = create({
11+
components: [NButton, NGrid, NGi, NCard, NStatistic, NSpace, NConfigProvider],
12+
});
13+
14+
createApp(App).use(naive).mount('#app');
15+
16+
init();
17+
// hack for: https://github.com/neutralinojs/neutralinojs/issues/1179
18+
events.on('windowClose', () => {
19+
app.exit();
20+
});
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:root {
2+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3+
line-height: 1.5;
4+
font-weight: 400;
5+
6+
color-scheme: light dark;
7+
color: rgba(255, 255, 255, 0.87);
8+
background-color: #242424;
9+
10+
font-synthesis: none;
11+
text-rendering: optimizeLegibility;
12+
-webkit-font-smoothing: antialiased;
13+
-moz-osx-font-smoothing: grayscale;
14+
}
15+
16+
body {
17+
margin: 0;
18+
display: flex;
19+
place-items: center;
20+
}
21+
22+
#app {
23+
width: 100%;
24+
margin: 0 auto;
25+
padding: .5rem;
26+
text-align: center;
27+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)