@hywax/cms 1.3.0 → 1.5.0

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.
@@ -1,7 +1,5 @@
1
1
  const cmsConfig = {
2
- "name": "cms",
3
- "uploraUrl": "http://uplora.ru",
4
- "fluxorUrl": "https://fluxor.uplora.ru"
2
+ "name": "cms"
5
3
  } as const
6
4
 
7
5
  export const getCmsConfig = () => cmsConfig
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "configKey": "cms",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
6
6
  import { readFile, writeFile } from 'node:fs/promises';
7
7
 
8
8
  const name = "@hywax/cms";
9
- const version = "1.3.0";
9
+ const version = "1.5.0";
10
10
 
11
11
  function createContext(options, nuxt) {
12
12
  const { resolve } = createResolver(import.meta.url);
@@ -184,6 +184,10 @@ function prepareMergeConfigs({ nuxt, options }) {
184
184
  }
185
185
  },
186
186
  table: {
187
+ slots: {
188
+ tr: "group/row",
189
+ td: 'group-data-expanded/row:empty:after:content-["\u2014"] group-data-expanded/row:empty:after:text-dimmed'
190
+ },
187
191
  variants: {
188
192
  pinned: {
189
193
  true: {
@@ -448,9 +452,10 @@ export {}
448
452
  write: true,
449
453
  getContents: () => {
450
454
  const config = {
451
- name: options.name,
452
- uploraUrl: options.uploraUrl,
453
- fluxorUrl: options.fluxorUrl
455
+ name: options.name
456
+ // Переменные есть в runtimeConfig
457
+ // uploraUrl: options.uploraUrl,
458
+ // fluxorUrl: options.fluxorUrl,
454
459
  };
455
460
  return `const cmsConfig = ${JSON.stringify(config, null, 2)} as const
456
461
 
@@ -14,7 +14,9 @@ export interface Props extends Pick<ButtonProps, 'target' | 'external' | 'label'
14
14
  }
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
17
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
17
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ showAction: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
18
20
  default?: (props: {}) => any;
19
21
  } & {
20
22
  default?: (props: {}) => any;
@@ -24,7 +24,7 @@
24
24
  >
25
25
  <UButton
26
26
  :class="ui.button({ class: props.ui?.button })"
27
- :icon="copied ? 'check' : 'copy'"
27
+ :icon="copied ? appConfig.ui.icons.check : appConfig.ui.icons.copy"
28
28
  variant="link"
29
29
  size="sm"
30
30
  :color="copied ? 'success' : 'neutral'"
@@ -45,7 +45,7 @@ import { tv } from "../tv";
45
45
  <script setup>
46
46
  const props = defineProps({
47
47
  text: { type: [String, Number, null], required: false },
48
- showAction: { type: Boolean, required: false },
48
+ showAction: { type: Boolean, required: false, default: true },
49
49
  alwaysShowTooltip: { type: Boolean, required: false },
50
50
  to: { type: null, required: false },
51
51
  class: { type: null, required: false },
@@ -14,7 +14,9 @@ export interface Props extends Pick<ButtonProps, 'target' | 'external' | 'label'
14
14
  }
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
17
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
17
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ showAction: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
18
20
  default?: (props: {}) => any;
19
21
  } & {
20
22
  default?: (props: {}) => any;
@@ -0,0 +1,2 @@
1
+ export declare const authRedirectToCookie: string;
2
+ export declare function getAuthRedirectTo(redirectTo?: string): string;
@@ -0,0 +1,5 @@
1
+ import { getCmsConfig } from "#imports";
2
+ export const authRedirectToCookie = `${getCmsConfig().name}-auth-redirect`;
3
+ export function getAuthRedirectTo(redirectTo) {
4
+ return redirectTo ? decodeURIComponent(redirectTo) : "/";
5
+ }
@@ -1,3 +1,4 @@
1
+ export * from './auth';
1
2
  export * from './avatar';
2
3
  export * from './date';
3
4
  export * from './features';
@@ -1,3 +1,4 @@
1
+ export * from "./auth.js";
1
2
  export * from "./avatar.js";
2
3
  export * from "./date.js";
3
4
  export * from "./features.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hywax/cms",
3
3
  "type": "module",
4
- "version": "1.3.0",
4
+ "version": "1.5.0",
5
5
  "description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
6
6
  "repository": {
7
7
  "type": "git",