adminforth 1.3.54-next.14 → 1.3.54-next.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.54-next.14",
3
+ "version": "1.3.54-next.16",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,9 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "build": "tsc",
10
10
  "---prepareDist": "cp -rL spa dist/",
11
- "rollout": "tsc && npm version patch && npm publish && npm run rollout-doc",
12
- "rollout-next": "tsc && npm version prerelease --preid=next && npm publish --tag next && git tag -a v$(node -p \"require('./package.json').version\") -m \"v$(node -p \"require('./package.json').version\")\"",
11
+ "put-git-tag": "git tag -a v$(node -p \"require('./package.json').version\") && git push origin v$(node -p \"require('./package.json').version\")",
12
+ "rollout": "tsc && npm version patch && npm publish && npm run rollout-doc && npm run put-git-tag",
13
+ "rollout-next": "tsc && npm version prerelease --preid=next && npm publish --tag next && npm run put-git-tag",
13
14
  "rollout-doc": "cd documentation && npm run build && npm run deploy",
14
15
  "docs": "typedoc",
15
16
  "postinstall": "cd ./spa/src/ && test ! -d ./types && ln -sf ../../types ./types || echo 'types linked'"
@@ -10,6 +10,14 @@
10
10
  :adminUser="coreStore.adminUser"
11
11
  />
12
12
  <BreadcrumbsWithButtons>
13
+ <RouterLink v-if="coreStore.resource?.options?.allowedActions?.create"
14
+ :to="{ name: 'resource-create', params: { resourceId: $route.params.resourceId } }"
15
+ class="flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 rounded-default"
16
+ >
17
+ <IconPlusOutline class="w-4 h-4 me-2"/>
18
+ Add new
19
+ </RouterLink>
20
+
13
21
  <RouterLink v-if="coreStore?.resourceOptions?.allowedActions?.edit" :to="{ name: 'resource-edit', params: { resourceId: $route.params.resourceId, primaryKey: $route.params.primaryKey } }"
14
22
  class="flex items-center py-1 px-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-default border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
15
23
  >
@@ -126,7 +134,7 @@ import BreadcrumbsWithButtons from '@/components/BreadcrumbsWithButtons.vue';
126
134
  import ValueRenderer from '@/components/ValueRenderer.vue';
127
135
  import { useCoreStore } from '@/stores/core';
128
136
  import { getCustomComponent, checkAcessByAllowedActions, initThreeDotsDropdown } from '@/utils';
129
- import { IconPenSolid, IconTrashBinSolid } from '@iconify-prerendered/vue-flowbite';
137
+ import { IconPenSolid, IconTrashBinSolid, IconPlusOutline } from '@iconify-prerendered/vue-flowbite';
130
138
  import { onMounted, ref } from 'vue';
131
139
  import { useRoute,useRouter } from 'vue-router';
132
140
  import {callAdminForthApi} from '@/utils';