@dashadmin/dash-constants 1.3.26 → 1.3.29
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
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dashadmin/dash-constants
|
|
2
|
+
|
|
3
|
+
> Shared constants and enumerations for the Dash framework.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Single source of truth for constant values, keys and enums referenced across packages.
|
|
8
|
+
|
|
9
|
+
## Key exports & features
|
|
10
|
+
|
|
11
|
+
- Framework-wide constants
|
|
12
|
+
- Shared enums & keys
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# From the public npm registry
|
|
18
|
+
npm install @dashadmin/dash-constants
|
|
19
|
+
|
|
20
|
+
# Or the local Verdaccio registry (unscoped)
|
|
21
|
+
npm install dash-constants --registry http://localhost:4873
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Development & publishing
|
|
25
|
+
|
|
26
|
+
This package is part of the **dash-frontend-core** monorepo. See [`DEVELOPMENT.md`](../../DEVELOPMENT.md) for the source-modification workflow, local Verdaccio publishing, npm publishing and version-bump policy.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
_Part of the [Dash Framework](https://www.npmjs.com/org/dashadmin) · `@dashadmin` scope._
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
const getEnvironmentVariable = (environmentVariable) => {
|
|
2
3
|
const unvalidatedEnvironmentVariable = process.env[environmentVariable];
|
|
3
4
|
return unvalidatedEnvironmentVariable || null;
|
|
@@ -30,8 +31,10 @@ const system = {
|
|
|
30
31
|
DEFAULT_PER_PAGE: Number(getEnv("DEFAULT_PER_PAGE")) || null,
|
|
31
32
|
//URL_PREFIX: getEnv('DASH_ADMIN_URL_PREFIX') || '#/',
|
|
32
33
|
URL_PREFIX: getEnv("DASH_ADMIN_URL_PREFIX") || "/",
|
|
33
|
-
//
|
|
34
|
-
PAGE_TRANSITIONS
|
|
34
|
+
// Route/page transition animations (framer-motion). Disable for low-powered
|
|
35
|
+
// devices such as Raspberry Pi via env `<PREFIX>PAGE_TRANSITIONS=false`.
|
|
36
|
+
// Defaults to true when unset; only the literal "false" turns it off.
|
|
37
|
+
PAGE_TRANSITIONS: String((_a = getEnv("PAGE_TRANSITIONS")) != null ? _a : "true").toLowerCase() !== "false",
|
|
35
38
|
GOOGLE_SIGNUP: JSON.parse(getEnv("APP_GOOGLE_SIGNUP")) || false,
|
|
36
39
|
GOOGLE_CLIENT_ID: getEnv("APP_GOOGLE_CLIENT_ID") || "",
|
|
37
40
|
RECAPTCHA_ENABLED: JSON.parse(getEnv("APP_RECAPTCHA_ENABLED")) || false,
|
package/package.json
CHANGED
|
@@ -53,8 +53,10 @@ const system = {
|
|
|
53
53
|
DEFAULT_PER_PAGE: Number(getEnv('DEFAULT_PER_PAGE')) || null,
|
|
54
54
|
//URL_PREFIX: getEnv('DASH_ADMIN_URL_PREFIX') || '#/',
|
|
55
55
|
URL_PREFIX: getEnv('DASH_ADMIN_URL_PREFIX') || '/',
|
|
56
|
-
//
|
|
57
|
-
PAGE_TRANSITIONS
|
|
56
|
+
// Route/page transition animations (framer-motion). Disable for low-powered
|
|
57
|
+
// devices such as Raspberry Pi via env `<PREFIX>PAGE_TRANSITIONS=false`.
|
|
58
|
+
// Defaults to true when unset; only the literal "false" turns it off.
|
|
59
|
+
PAGE_TRANSITIONS: String(getEnv('PAGE_TRANSITIONS') ?? 'true').toLowerCase() !== 'false',
|
|
58
60
|
|
|
59
61
|
GOOGLE_SIGNUP: JSON.parse(getEnv('APP_GOOGLE_SIGNUP')) || false,
|
|
60
62
|
GOOGLE_CLIENT_ID: getEnv('APP_GOOGLE_CLIENT_ID') || '',
|