Skip to content

Commit 42a7f47

Browse files
fix: Fix failling format(Run prettier --write)
1 parent ff58863 commit 42a7f47

13 files changed

Lines changed: 3351 additions & 203 deletions

File tree

.eslintrc.cjs

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,30 @@ module.exports = {
55
browser: true,
66
es2021: true,
77
},
8-
globals: {
9-
__APP_VERSION__: 'readonly',
10-
},
11-
extends: [
12-
'eslint:recommended',
13-
'plugin:vue/vue3-recommended',
14-
'plugin:@typescript-eslint/recommended',
15-
'prettier',
16-
],
17-
parser: 'vue-eslint-parser',
8+
extends: ["eslint:recommended", "plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
9+
parser: "vue-eslint-parser",
1810
parserOptions: {
19-
ecmaVersion: 'latest',
20-
parser: '@typescript-eslint/parser',
21-
sourceType: 'module',
11+
ecmaVersion: "latest",
12+
parser: "@typescript-eslint/parser",
13+
sourceType: "module",
2214
},
23-
plugins: ['vue', '@typescript-eslint'],
15+
plugins: ["vue", "@typescript-eslint"],
2416
rules: {
25-
'vue/multi-word-component-names': 'off',
26-
'@typescript-eslint/no-explicit-any': 'off',
27-
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
28-
'vue/max-attributes-per-line': 'off',
29-
'vue/singleline-html-element-content-newline': 'off',
30-
'vue/html-self-closing': ['warn', {
31-
html: { void: 'any', normal: 'always', component: 'always' },
32-
svg: 'always',
33-
math: 'always',
34-
}],
35-
'vue/attributes-order': 'off',
36-
'vue/require-default-prop': 'off',
37-
'vue/use-v-on-exact': 'off',
17+
"vue/multi-word-component-names": "off",
18+
"@typescript-eslint/no-explicit-any": "off",
19+
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
20+
"vue/max-attributes-per-line": "off",
21+
"vue/singleline-html-element-content-newline": "off",
22+
"vue/html-self-closing": [
23+
"warn",
24+
{
25+
html: { void: "any", normal: "always", component: "always" },
26+
svg: "always",
27+
math: "always",
28+
},
29+
],
30+
"vue/attributes-order": "off",
31+
"vue/require-default-prop": "off",
32+
"vue/use-v-on-exact": "off",
3833
},
3934
};

.github/workflows/ci.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ FlatRun UI provides a user-friendly dashboard for managing Docker deployments th
3232
## Development
3333

3434
### Prerequisites
35+
3536
- Node.js 18+ and npm
3637

3738
### Setup
@@ -103,8 +104,8 @@ If running the UI on a different domain/port than the agent, ensure the agent's
103104
api:
104105
enable_cors: true
105106
allowed_origins:
106-
- http://localhost:5173 # Development
107-
- https://your-ui-domain.com # Production
107+
- http://localhost:5173 # Development
108+
- https://your-ui-domain.com # Production
108109
```
109110
110111
## Available Scripts
@@ -162,16 +163,19 @@ EXPOSE 80
162163
## Troubleshooting
163164

164165
### Cannot connect to agent
166+
165167
- Verify the agent is running: `systemctl status flatrun-agent`
166168
- Check `VITE_API_URL` is correct in your `.env.local`
167169
- Ensure CORS is configured if running on different domains
168170

169171
### Authentication fails
172+
170173
- Verify the API key matches the agent's configuration
171174
- Check browser console for specific error messages
172175
- Ensure JWT secret is properly set in agent config
173176

174177
### UI shows no deployments
178+
175179
- Confirm the agent's `deployments_path` is accessible
176180
- Check that deployments have valid `docker-compose.yml` files
177181

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8">
5-
<link rel="icon" type="image/svg+xml" href="/src/assets/flatrun-icon-black.svg">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/src/assets/flatrun-icon-black.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Flatrun - Container Orchestration</title>
88
</head>
99
<body>

src/i18n/locales/en.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -888,31 +888,19 @@
888888
"name": "Easy Mode",
889889
"description": "Guided setup with templates",
890890
"badge": "Recommended",
891-
"features": [
892-
"Choose from pre-built templates",
893-
"Auto-configure database",
894-
"Domain & SSL setup"
895-
]
891+
"features": ["Choose from pre-built templates", "Auto-configure database", "Domain & SSL setup"]
896892
},
897893
"image": {
898894
"name": "From Image",
899895
"description": "Deploy any Docker image",
900896
"badge": "Quick",
901-
"features": [
902-
"Use any public/private image",
903-
"Auto-generate compose",
904-
"Quick deployment"
905-
]
897+
"features": ["Use any public/private image", "Auto-generate compose", "Quick deployment"]
906898
},
907899
"compose": {
908900
"name": "Compose Mode",
909901
"description": "Full control with docker-compose",
910902
"badge": "Advanced",
911-
"features": [
912-
"Write your own compose file",
913-
"Advanced configuration",
914-
"For power users"
915-
]
903+
"features": ["Write your own compose file", "Advanced configuration", "For power users"]
916904
}
917905
},
918906
"steps": {

src/i18n/locales/es.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -745,21 +745,13 @@
745745
"name": "Desde Imagen",
746746
"description": "Despliegue cualquier imagen Docker",
747747
"badge": "Rápido",
748-
"features": [
749-
"Use cualquier imagen pública/privada",
750-
"Genere compose automáticamente",
751-
"Despliegue rápido"
752-
]
748+
"features": ["Use cualquier imagen pública/privada", "Genere compose automáticamente", "Despliegue rápido"]
753749
},
754750
"compose": {
755751
"name": "Modo Compose",
756752
"description": "Control total con docker-compose",
757753
"badge": "Avanzado",
758-
"features": [
759-
"Escriba su propio archivo compose",
760-
"Configuración avanzada",
761-
"Para usuarios avanzados"
762-
]
754+
"features": ["Escriba su propio archivo compose", "Configuración avanzada", "Para usuarios avanzados"]
763755
}
764756
},
765757
"steps": {

src/i18n/locales/fr.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,7 @@
908908
"name": "Mode Compose",
909909
"description": "Contrôle total avec docker-compose",
910910
"badge": "Avancé",
911-
"features": [
912-
"Écrivez votre propre fichier compose",
913-
"Configuration avancée",
914-
"Pour utilisateurs avancés"
915-
]
911+
"features": ["Écrivez votre propre fichier compose", "Configuration avancée", "Pour utilisateurs avancés"]
916912
}
917913
},
918914
"steps": {

src/i18n/locales/it.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,7 @@
755755
"name": "Modalità Compose",
756756
"description": "Controllo totale con docker-compose",
757757
"badge": "Avanzato",
758-
"features": [
759-
"Scrivi il tuo file compose",
760-
"Configurazione avanzata",
761-
"Per utenti esperti"
762-
]
758+
"features": ["Scrivi il tuo file compose", "Configurazione avanzata", "Per utenti esperti"]
763759
}
764760
},
765761
"steps": {

src/i18n/locales/pt.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,7 @@
745745
"name": "De Imagem",
746746
"description": "Implemente qualquer imagem Docker",
747747
"badge": "Rápido",
748-
"features": [
749-
"Use qualquer imagem pública/privada",
750-
"Gere compose automaticamente",
751-
"Implementação rápida"
752-
]
748+
"features": ["Use qualquer imagem pública/privada", "Gere compose automaticamente", "Implementação rápida"]
753749
},
754750
"compose": {
755751
"name": "Modo Compose",

0 commit comments

Comments
 (0)