@xk2800/nextjs-template 0.7.2-beta.10 → 0.7.2-beta.12
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/components/dashboard/admin/system-settings/system-settings-form.tsx +177 -162
- package/components/dashboard/admin/system-settings/system-settings-section.tsx +4 -2
- package/dist/api/feedback.js +18 -0
- package/dist/api/feedback.js.map +1 -1
- package/dist/api/feedback.mjs +1 -1
- package/dist/api/marketing.js +18 -0
- package/dist/api/marketing.js.map +1 -1
- package/dist/api/marketing.mjs +2 -2
- package/dist/auth/helpers.js +18 -0
- package/dist/auth/helpers.js.map +1 -1
- package/dist/auth/helpers.mjs +2 -2
- package/dist/auth/index.js +18 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-S23GC776.mjs → chunk-RK2B5AOQ.mjs} +3 -3
- package/dist/{chunk-S23GC776.mjs.map → chunk-RK2B5AOQ.mjs.map} +1 -1
- package/dist/{chunk-IH6CMZIN.mjs → chunk-ZQTI4T2K.mjs} +20 -2
- package/dist/chunk-ZQTI4T2K.mjs.map +1 -0
- package/package.json +1 -1
- package/scripts/check-deps.mjs +3 -1
- package/dist/chunk-IH6CMZIN.mjs.map +0 -1
package/dist/api/feedback.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { lookupErrorDetail, unexpectedErrorMessage } from '../chunk-EXMUANQ3.mjs';
|
|
2
|
-
import { auth } from '../chunk-
|
|
2
|
+
import { auth } from '../chunk-ZQTI4T2K.mjs';
|
|
3
3
|
import '../chunk-ZOQHHFYA.mjs';
|
|
4
4
|
import '../chunk-QDUPSU5O.mjs';
|
|
5
5
|
import { getSystemSettings } from '../chunk-NJBRKKLK.mjs';
|
package/dist/api/marketing.js
CHANGED
|
@@ -6,6 +6,9 @@ require('server-only');
|
|
|
6
6
|
var server = require('next/server');
|
|
7
7
|
var headers = require('next/headers');
|
|
8
8
|
var zod = require('zod');
|
|
9
|
+
var child_process = require('child_process');
|
|
10
|
+
var fs = require('fs');
|
|
11
|
+
var path = require('path');
|
|
9
12
|
var betterAuth = require('better-auth');
|
|
10
13
|
var drizzle = require('better-auth/adapters/drizzle');
|
|
11
14
|
var cuid2 = require('@paralleldrive/cuid2');
|
|
@@ -1172,6 +1175,21 @@ async function getBroadcastResend() {
|
|
|
1172
1175
|
}
|
|
1173
1176
|
|
|
1174
1177
|
// server/auth.ts
|
|
1178
|
+
function checkDepsOnce() {
|
|
1179
|
+
const flag = globalThis;
|
|
1180
|
+
if (process.env.NODE_ENV !== "development" || flag.__xkDepsChecked) return;
|
|
1181
|
+
flag.__xkDepsChecked = true;
|
|
1182
|
+
const script = path.join(
|
|
1183
|
+
/*turbopackIgnore: true*/
|
|
1184
|
+
process.cwd(),
|
|
1185
|
+
"node_modules/@xk2800/nextjs-template/scripts/check-deps.mjs"
|
|
1186
|
+
);
|
|
1187
|
+
if (!fs.existsSync(script)) return;
|
|
1188
|
+
child_process.execFile(process.execPath, [script], (_err, stdout) => {
|
|
1189
|
+
if (stdout == null ? void 0 : stdout.trim()) console.log(stdout);
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
checkDepsOnce();
|
|
1175
1193
|
async function logFailedLogin(ctx, log) {
|
|
1176
1194
|
var _a, _b, _c;
|
|
1177
1195
|
try {
|