mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
chore: Fix formatting (prettier)
This commit is contained in:
parent
38320bc316
commit
8df90ef5e2
12 changed files with 114 additions and 149 deletions
|
@ -23,8 +23,6 @@ Source code of [https://xmr.ditatompel.com](https://xmr.ditatompel.com), a websi
|
||||||
3. Build the binary with `make build`.
|
3. Build the binary with `make build`.
|
||||||
4. Run the service with `./bin/xmr-nodes-server-linux-<YOUR_CPU_ARCH> serve`.
|
4. Run the service with `./bin/xmr-nodes-server-linux-<YOUR_CPU_ARCH> serve`.
|
||||||
|
|
||||||
To create admin user (for creating proberAPI key from Web-UI, execute `./bin/xmr-nodes-server-linux-<YOUR_CPU_ARCH> admin create`).
|
|
||||||
|
|
||||||
Systemd example: [./tools/resources/init/xmr-nodes-server.service](./tools/resources/init/xmr-nodes-server.service).
|
Systemd example: [./tools/resources/init/xmr-nodes-server.service](./tools/resources/init/xmr-nodes-server.service).
|
||||||
|
|
||||||
### For initial prober setup:
|
### For initial prober setup:
|
||||||
|
@ -35,4 +33,3 @@ Systemd example: [./tools/resources/init/xmr-nodes-server.service](./tools/resou
|
||||||
4. Run the service with `./bin/xmr-nodes-client-linux-<YOUR_CPU_ARCH> probe`.
|
4. Run the service with `./bin/xmr-nodes-client-linux-<YOUR_CPU_ARCH> probe`.
|
||||||
|
|
||||||
Systemd example: [xmr-nodes-prober.service](./tools/resources/init/xmr-nodes-prober.service) and [xmr-nodes-prober.timer](./tools/resources/init/xmr-nodes-prober.timer).
|
Systemd example: [xmr-nodes-prober.service](./tools/resources/init/xmr-nodes-prober.service) and [xmr-nodes-prober.timer](./tools/resources/init/xmr-nodes-prober.timer).
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,3 @@
|
||||||
# UI
|
# UI
|
||||||
|
|
||||||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
|
The UI is generated and embedded when the Go project is built. See [./frontend/embed.go](https://github.com/ditatompel/xmr-remote-nodes/blob/main/frontend/embed.go#L10-L13).
|
||||||
|
|
||||||
## Developing
|
|
||||||
|
|
||||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm run dev
|
|
||||||
|
|
||||||
# or start the server and open the app in a new browser tab
|
|
||||||
npm run dev -- --open
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
To create a production version of your app:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
You can preview the production build with `npm run preview`.
|
|
||||||
|
|
||||||
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
|
|
||||||
|
|
||||||
## Deploying
|
|
||||||
|
|
||||||
after running `npm run build` from development device, copy `./build`, `package.json` and `package-lock.json` to server. On the server, run `npm ci --omit dev` then restart the systemd service.
|
|
||||||
|
|
||||||
Playbook example (run from root project):
|
|
||||||
```shell
|
|
||||||
ansible-playbook -i ./utils/ansible/inventory.ini -l production ./utils/ansible/deploy.yml -K
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {}
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
|
@ -14,13 +14,12 @@ p {
|
||||||
@apply text-primary-800 dark:text-primary-500 hover:brightness-110;
|
@apply text-primary-800 dark:text-primary-500 hover:brightness-110;
|
||||||
}
|
}
|
||||||
a.external {
|
a.external {
|
||||||
@apply link after:content-['_↗']
|
@apply link after:content-['_↗'];
|
||||||
}
|
}
|
||||||
.section-container {
|
.section-container {
|
||||||
@apply mx-auto w-full max-w-7xl p-4;
|
@apply mx-auto w-full max-w-7xl p-4;
|
||||||
}
|
}
|
||||||
.hero-gradient {
|
.hero-gradient {
|
||||||
background-image:
|
background-image: radial-gradient(at 0% 0%, rgba(242, 104, 34, 0.4) 0px, transparent 50%),
|
||||||
radial-gradient(at 0% 0%, rgba(242, 104, 34, .4) 0px, transparent 50%),
|
|
||||||
radial-gradient(at 98% 1%, rgba(var(--color-warning-900) / 0.33) 0px, transparent 50%);
|
radial-gradient(at 98% 1%, rgba(var(--color-warning-900) / 0.33) 0px, transparent 50%);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
export const prerender = true
|
export const prerender = true;
|
||||||
export const trailingSlash = 'always';
|
export const trailingSlash = 'always';
|
||||||
|
|
|
@ -6,13 +6,15 @@
|
||||||
"background_color": "#272b31",
|
"background_color": "#272b31",
|
||||||
"theme_color": "#272b31",
|
"theme_color": "#272b31",
|
||||||
"description": "Monero Remote Nodes",
|
"description": "Monero Remote Nodes",
|
||||||
"icons": [{
|
"icons": [
|
||||||
|
{
|
||||||
"src": "/img/icon/android-icon-36x36.png",
|
"src": "/img/icon/android-icon-36x36.png",
|
||||||
"sizes": "36x36",
|
"sizes": "36x36",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "any",
|
"purpose": "any",
|
||||||
"density": "0.75"
|
"density": "0.75"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"src": "/img/icon/android-icon-48x48.png",
|
"src": "/img/icon/android-icon-48x48.png",
|
||||||
"sizes": "48x48",
|
"sizes": "48x48",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
|
@ -59,5 +61,6 @@
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "maskable"
|
"purpose": "maskable"
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,5 @@ import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [sveltekit()]
|
||||||
sveltekit(),
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue