@plutocms/pluto 0.0.1-alpha.1
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/.editorconfig +12 -0
- package/.github/dependabot.yml +11 -0
- package/.github/workflows/publish.yml +32 -0
- package/.prettierrc +10 -0
- package/.vscode/extensions.json +14 -0
- package/.vscode/settings.json +72 -0
- package/.vscode/vue.code-snippets +16 -0
- package/README.md +114 -0
- package/app/app.config.ts +41 -0
- package/app/app.vue +13 -0
- package/app/assets/css/tailwind.css +12 -0
- package/app/components/AdminView.vue +7 -0
- package/app/components/ColorModeButton.vue +28 -0
- package/app/components/Container.vue +20 -0
- package/app/components/Pluto/Navbar/PlutoNavbarAdmin.vue +9 -0
- package/app/components/Pluto/Navbar/PlutoNavbarAdminActions.vue +7 -0
- package/app/components/Pluto/PlutoRoot.vue +27 -0
- package/app/components/ScrollArea.vue +86 -0
- package/app/components/modal/Modal.vue +161 -0
- package/app/components/modal/ModalContent.vue +27 -0
- package/app/components/modal/ModalFooter.vue +59 -0
- package/app/components/modal/ModalHeader.vue +64 -0
- package/app/composables/object-url.ts +9 -0
- package/app/layouts/admin.vue +45 -0
- package/app/layouts/auth.vue +7 -0
- package/app/pages/admin/home.vue +21 -0
- package/app/pages/index.vue +9 -0
- package/app/plugins/autofocus.ts +5 -0
- package/bun.lock +2656 -0
- package/eslint.config.mjs +84 -0
- package/layers/sql/.env.example +5 -0
- package/layers/sql/nuxt.config.ts +26 -0
- package/nuxt.config.ts +91 -0
- package/package.json +65 -0
- package/public/img/pluto.png +0 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import antfu from '@antfu/eslint-config'
|
|
3
|
+
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
4
|
+
|
|
5
|
+
// See: https://eslint.vuejs.org/rules
|
|
6
|
+
export default withNuxt(
|
|
7
|
+
antfu({
|
|
8
|
+
rules: {
|
|
9
|
+
'node/prefer-global/process': ['off', 'never'],
|
|
10
|
+
|
|
11
|
+
'style/arrow-parens': ['warn', 'always'],
|
|
12
|
+
|
|
13
|
+
'style/brace-style': ['warn', '1tbs'],
|
|
14
|
+
|
|
15
|
+
'vue/block-order': [
|
|
16
|
+
'warn',
|
|
17
|
+
{
|
|
18
|
+
order: ['script', 'template', 'style'],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
|
|
22
|
+
'vue/html-self-closing': [
|
|
23
|
+
'warn',
|
|
24
|
+
{
|
|
25
|
+
html: {
|
|
26
|
+
void: 'always',
|
|
27
|
+
normal: 'always',
|
|
28
|
+
component: 'always',
|
|
29
|
+
},
|
|
30
|
+
svg: 'always',
|
|
31
|
+
math: 'always',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
|
|
35
|
+
'vue/attributes-order': [
|
|
36
|
+
'warn',
|
|
37
|
+
{
|
|
38
|
+
order: [
|
|
39
|
+
'DEFINITION',
|
|
40
|
+
'LIST_RENDERING',
|
|
41
|
+
'CONDITIONALS',
|
|
42
|
+
'RENDER_MODIFIERS',
|
|
43
|
+
'GLOBAL',
|
|
44
|
+
'UNIQUE',
|
|
45
|
+
'TWO_WAY_BINDING',
|
|
46
|
+
'SLOT',
|
|
47
|
+
'OTHER_DIRECTIVES',
|
|
48
|
+
'ATTR_DYNAMIC',
|
|
49
|
+
'ATTR_STATIC',
|
|
50
|
+
'ATTR_SHORTHAND_BOOL',
|
|
51
|
+
'EVENTS',
|
|
52
|
+
'CONTENT',
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
|
|
57
|
+
'vue/multi-word-component-names': 'off',
|
|
58
|
+
|
|
59
|
+
'vue/eqeqeq': ['error', 'always'],
|
|
60
|
+
|
|
61
|
+
'style/comma-dangle': [
|
|
62
|
+
'warn',
|
|
63
|
+
{
|
|
64
|
+
arrays: 'always-multiline',
|
|
65
|
+
objects: 'always-multiline',
|
|
66
|
+
functions: 'never',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
|
|
70
|
+
'vue/comma-dangle': [
|
|
71
|
+
'warn',
|
|
72
|
+
{
|
|
73
|
+
arrays: 'always-multiline',
|
|
74
|
+
objects: 'always-multiline',
|
|
75
|
+
functions: 'never',
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
|
|
79
|
+
'style/operator-linebreak': 'off',
|
|
80
|
+
|
|
81
|
+
'vue/singleline-html-element-content-newline': 'off',
|
|
82
|
+
},
|
|
83
|
+
})
|
|
84
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default defineNuxtConfig({
|
|
2
|
+
$meta: {
|
|
3
|
+
name: 'sql',
|
|
4
|
+
},
|
|
5
|
+
|
|
6
|
+
nitro: {
|
|
7
|
+
experimental: {
|
|
8
|
+
database: true,
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
database: {
|
|
12
|
+
default: {
|
|
13
|
+
connector: 'mysql2',
|
|
14
|
+
options: {
|
|
15
|
+
host: process.env.PLUTO_MYSQL_HOST || 'localhost',
|
|
16
|
+
port: process.env.PLUTO_MYSQL_PORT
|
|
17
|
+
? Number(process.env.PLUTO_MYSQL_PORT)
|
|
18
|
+
: 3306,
|
|
19
|
+
user: process.env.PLUTO_MYSQL_USER || 'root',
|
|
20
|
+
password: process.env.PLUTO_MYSQL_PASSWORD || '',
|
|
21
|
+
database: process.env.PLUTO_MYSQL_DATABASE || '',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
})
|
package/nuxt.config.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
2
|
+
|
|
3
|
+
const websiteName = process.env.WEBSITE_NAME || 'Untitled'
|
|
4
|
+
|
|
5
|
+
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
6
|
+
export default defineNuxtConfig({
|
|
7
|
+
extends: ['../utils'],
|
|
8
|
+
|
|
9
|
+
modules: [
|
|
10
|
+
'@nuxt/eslint',
|
|
11
|
+
'@nuxt/ui',
|
|
12
|
+
'@vueuse/nuxt',
|
|
13
|
+
[
|
|
14
|
+
'reka-ui/nuxt',
|
|
15
|
+
{
|
|
16
|
+
prefix: 'Reka',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
],
|
|
20
|
+
|
|
21
|
+
$development: {
|
|
22
|
+
vite: {
|
|
23
|
+
optimizeDeps: {
|
|
24
|
+
include: ['@vue/devtools-core', '@vue/devtools-kit'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
$meta: {
|
|
30
|
+
name: 'pluto',
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
devtools: { enabled: true },
|
|
34
|
+
|
|
35
|
+
app: {
|
|
36
|
+
head: {
|
|
37
|
+
titleTemplate: `%s - ${websiteName}`,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
css: ['#layers/pluto/app/assets/css/tailwind.css'],
|
|
42
|
+
|
|
43
|
+
runtimeConfig: {
|
|
44
|
+
public: {
|
|
45
|
+
websiteName,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
routeRules: {
|
|
50
|
+
'/admin': {
|
|
51
|
+
redirect: {
|
|
52
|
+
to: '/admin/home',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
'/admin/**': {
|
|
56
|
+
ssr: false,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
experimental: {
|
|
61
|
+
typedPages: true,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
compatibilityDate: '2025-08-15',
|
|
65
|
+
|
|
66
|
+
vite: {
|
|
67
|
+
// @ts-expect-error - Vite plugin types are not compatible with Nuxt's Vite configuration
|
|
68
|
+
plugins: [tailwindcss()],
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
typescript: {
|
|
72
|
+
includeWorkspace: true,
|
|
73
|
+
typeCheck: false,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
eslint: {
|
|
77
|
+
config: {
|
|
78
|
+
nuxt: {
|
|
79
|
+
sortConfigKeys: true,
|
|
80
|
+
},
|
|
81
|
+
standalone: false,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
// Modules configurations
|
|
86
|
+
fonts: {
|
|
87
|
+
defaults: {
|
|
88
|
+
weights: [400, 600, 700],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
})
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plutocms/pluto",
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
|
+
"description": "The layerable CMS",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pluto",
|
|
7
|
+
"cms",
|
|
8
|
+
"nuxt",
|
|
9
|
+
"vue",
|
|
10
|
+
"wordpress"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/plutocms/pluto#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/plutocms/pluto/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/plutocms/pluto.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Victor Ribeiro",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "nuxt.config.ts",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "nuxt build",
|
|
26
|
+
"dev": "nuxt dev --no-fork",
|
|
27
|
+
"generate": "nuxt generate",
|
|
28
|
+
"preview": "nuxt preview",
|
|
29
|
+
"postinstall": "nuxt prepare",
|
|
30
|
+
"prettier": "prettier --write .",
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"lint:fix": "eslint . --fix && prettier --write .",
|
|
33
|
+
"typecheck": "nuxt prepare && vue-tsc -b --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@nuxt/ui": "^4.4.0",
|
|
37
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
38
|
+
"@vueuse/nuxt": "^14.0.0",
|
|
39
|
+
"mysql2": "^3.15.3",
|
|
40
|
+
"nuxt": "^4.3.1",
|
|
41
|
+
"reka-ui": "^2.8.2",
|
|
42
|
+
"tailwind-merge": "^3.5.0",
|
|
43
|
+
"tailwindcss": "^4.2.1",
|
|
44
|
+
"vue": "^3.5.28",
|
|
45
|
+
"vue-router": "^5.0.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@antfu/eslint-config": "^7.4.3",
|
|
49
|
+
"@iconify-json/lucide": "^1.2.71",
|
|
50
|
+
"@iconify-json/simple-icons": "^1.2.55",
|
|
51
|
+
"@nuxt/eslint": "^1.15.1",
|
|
52
|
+
"@types/bun": "^1.3.9",
|
|
53
|
+
"eslint": "^10.0.2",
|
|
54
|
+
"prettier": "^3.8.1",
|
|
55
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
56
|
+
"typescript": "^5.9.3"
|
|
57
|
+
},
|
|
58
|
+
"trustedDependencies": [
|
|
59
|
+
"@parcel/watcher",
|
|
60
|
+
"@tailwindcss/oxide",
|
|
61
|
+
"esbuild",
|
|
62
|
+
"unrs-resolver",
|
|
63
|
+
"vue-demi"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
Binary file
|