inicontent 1.0.0 → 1.0.2
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/README.md +23 -25
- package/app/components/Header.vue +1 -1
- package/app/components/Table/index.vue +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,40 +44,38 @@ schema field types, flows, routing).
|
|
|
44
44
|
|
|
45
45
|
There are two ways to use this project:
|
|
46
46
|
|
|
47
|
-
### 1. Recommended Method: Add as a Nuxt Layer
|
|
47
|
+
### 1. Recommended Method: Install from npm and Add as a Nuxt Layer
|
|
48
48
|
|
|
49
|
-
The easiest way to integrate Inicontent CMS is to use it as a Nuxt Layer.
|
|
49
|
+
The easiest way to integrate Inicontent CMS is to install it from npm and use it as a Nuxt Layer.
|
|
50
50
|
|
|
51
51
|
**Steps:**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
|
|
53
|
+
1. Install the package:
|
|
54
|
+
```bash
|
|
55
|
+
npm install inicontent
|
|
56
|
+
```
|
|
57
|
+
(or `pnpm add inicontent`, `yarn add inicontent`, `bun add inicontent`)
|
|
58
|
+
2. Add it as a layer in your `nuxt.config` file:
|
|
59
|
+
```javascript
|
|
60
|
+
// nuxt.config.ts
|
|
61
|
+
export default defineNuxtConfig({
|
|
62
|
+
extends: ["inicontent"]
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
3. Remove your existing `app.vue` file to avoid conflicts.
|
|
66
|
+
4. To override specific admin routes, create corresponding files in the `pages` directory. These will automatically override the default routes provided by the CMS.
|
|
67
|
+
|
|
68
|
+
**Database Configuration:**
|
|
69
|
+
- By default, the CMS is a multi-database manager.
|
|
70
|
+
- When no `database` is set in `.env`, the admin interface (`/admin`) will display all available databases. Users can then navigate to a specific database's admin panel at `/admin/<dbName>`.
|
|
71
|
+
- If a `database` is specified in `.env`, the `/admin` route will directly display the tables for the specified database, removing the need to include the database name in the path.
|
|
69
72
|
|
|
70
73
|
```sh
|
|
71
74
|
# .env
|
|
72
75
|
database=DATABASE_SLUG
|
|
73
76
|
```
|
|
74
77
|
|
|
75
|
-
|
|
76
|
-
- The CMS is a multi-database manager by default.
|
|
77
|
-
- When no `database` is set in `.env`, `/admin` lists all available databases; users navigate to a specific database's admin panel at `/admin/<dbName>`.
|
|
78
|
-
- When `database` is set, `/admin` shows that database's tables directly, without the name in the path.
|
|
79
|
-
|
|
80
|
-
This method keeps your project clean and makes updates to the CMS easy.
|
|
78
|
+
This method keeps your project clean and makes updates to the CMS easy: you stay on the `inicontent` version pinned in your `package.json` and upgrade intentionally with `npm update inicontent`.
|
|
81
79
|
|
|
82
80
|
### 2. Advanced Method: Clone and Edit the Repository
|
|
83
81
|
|
|
@@ -200,7 +200,7 @@ const userDropdownOptions = computed(() => [
|
|
|
200
200
|
show: user.value?.role === config.public.idOne,
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
label: () => h(NFlex,{ justify: "start", align: "center" }, () => [
|
|
203
|
+
label: () => h(NFlex,{ justify: "start", align: "center", flexDirection: Language.value === "ar" ? 'row-reverse' : 'row' }, () => [
|
|
204
204
|
t("billing"),
|
|
205
205
|
h(NIcon, { color: ThemeConfig.value.primaryColor}, () => h(Icon, { name: "tabler:external-link" }))
|
|
206
206
|
]),
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
style="background-color: transparent;"
|
|
18
18
|
:header-style="{ paddingRight: 0, paddingLeft: 0 }" content-style="padding: 0" :bordered="false">
|
|
19
19
|
<template #header-extra>
|
|
20
|
-
<NFlex id="navbarActions" align="center" justify="center" :size="isSlotSet('navbarExtraActions') ? 'medium' : 0" style="flex-direction: row-reverse;">
|
|
20
|
+
<NFlex id="navbarActions" align="center" justify="center" :size="isSlotSet('navbarExtraActions') || isSlotSet('navbarActions') ? 'medium' : 0" style="flex-direction: row-reverse;">
|
|
21
21
|
<slot name="navbarActions">
|
|
22
22
|
<NButtonGroup id="navbarExtraButtons">
|
|
23
23
|
<NTooltip v-if="table.config?.realtime" :delay="1500">
|