@donotdev/core 0.3.2 → 0.3.3
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/functions/index.js +19 -19
- package/i18n/locales/eager/dndev_ar.json +2 -1
- package/i18n/locales/eager/dndev_da.json +2 -1
- package/i18n/locales/eager/dndev_de.json +2 -1
- package/i18n/locales/eager/dndev_en.json +2 -1
- package/i18n/locales/eager/dndev_es.json +2 -1
- package/i18n/locales/eager/dndev_fr.json +2 -1
- package/i18n/locales/eager/dndev_it.json +2 -1
- package/i18n/locales/eager/dndev_ja.json +2 -1
- package/i18n/locales/eager/dndev_ko.json +2 -1
- package/i18n/locales/eager/dndev_nl.json +2 -1
- package/i18n/locales/eager/dndev_pl.json +2 -1
- package/i18n/locales/eager/dndev_pt.json +2 -1
- package/i18n/locales/eager/dndev_zh.json +2 -1
- package/i18n/locales/lazy/auth_ar.json +19 -2
- package/i18n/locales/lazy/auth_da.json +22 -2
- package/i18n/locales/lazy/auth_de.json +19 -2
- package/i18n/locales/lazy/auth_en.json +19 -2
- package/i18n/locales/lazy/auth_es.json +19 -2
- package/i18n/locales/lazy/auth_fr.json +19 -2
- package/i18n/locales/lazy/auth_it.json +19 -2
- package/i18n/locales/lazy/auth_ja.json +19 -2
- package/i18n/locales/lazy/auth_ko.json +19 -2
- package/i18n/locales/lazy/auth_nl.json +22 -2
- package/i18n/locales/lazy/auth_pl.json +19 -2
- package/i18n/locales/lazy/auth_pt.json +19 -2
- package/i18n/locales/lazy/auth_zh.json +19 -2
- package/i18n/locales/lazy/crud_ar.json +3 -1
- package/i18n/locales/lazy/crud_da.json +3 -1
- package/i18n/locales/lazy/crud_de.json +3 -1
- package/i18n/locales/lazy/crud_en.json +3 -1
- package/i18n/locales/lazy/crud_es.json +3 -1
- package/i18n/locales/lazy/crud_fr.json +3 -1
- package/i18n/locales/lazy/crud_it.json +3 -1
- package/i18n/locales/lazy/crud_ja.json +3 -1
- package/i18n/locales/lazy/crud_ko.json +3 -1
- package/i18n/locales/lazy/crud_nl.json +3 -1
- package/i18n/locales/lazy/crud_pl.json +3 -1
- package/i18n/locales/lazy/crud_pt.json +3 -1
- package/i18n/locales/lazy/crud_zh.json +3 -1
- package/index.d.ts +158 -6
- package/index.js +3 -3
- package/next/index.d.ts +65 -1
- package/next/index.js +222 -184
- package/package.json +2 -2
- package/server.d.ts +158 -4
- package/shared.js +1 -1
- package/symbol-index.json +1 -1
- package/vite/index.d.ts +64 -0
- package/vite/index.js +180 -174
package/functions/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import I from"node:fs";import
|
|
2
|
-
`:h=String(t);try{return await X(async()=>(Buffer.isBuffer(h)?await d.promises.writeFile(l,h):await d.promises.writeFile(l,h,"utf8"),a&&y.info(`${
|
|
3
|
-
`:h=String(t);try{return Buffer.isBuffer(h)?d.writeFileSync(l,h):d.writeFileSync(l,h,"utf8"),this._writtenPaths?.add(l),a&&y.info(`${o?"Updated":"Created"} file: ${l}`),!0}catch(f){throw new Error(`Failed to write file: ${l}: ${f instanceof Error?f.message:String(f)}`)}}async copy(e,t,s={}){let{overwrite:c=!1,dryRun:n=!1,verbose:r=!1}=s,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!c)return r&&y.info(`Skipping existing file: ${a}`),!1;if(n)return y.info(`[DRY RUN] Would copy file: ${a}`),!0;let m=this.normalizePath(A(a));try{await d.promises.mkdir(m,{recursive:!0})}catch(o){if(!N(o))throw o}try{return await X(async()=>(await d.promises.copyFile(e,a),r&&y.info(`${l?"Updated":"Created"} file: ${a}`),!0),`Failed to copy file from ${e} to ${a}`)}catch{return!1}}copySync(e,t,s={}){let{overwrite:c=!1,dryRun:n=!1,verbose:r=!1}=s,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!c)return r&&y.info(`Skipping existing file: ${a}`),!1;if(n)return y.info(`[DRY RUN] Would copy file: ${a}`),!0;let m=this.normalizePath(A(a));try{d.mkdirSync(m,{recursive:!0})}catch(o){if(!N(o))throw o}try{return d.copyFileSync(e,a),this._writtenPaths?.add(a),r&&y.info(`${l?"Updated":"Created"} file: ${a}`),!0}catch{return!1}}pathExists(e,t=!1){try{return d.existsSync(e)}catch(s){return t||y.error(`Error checking path existence: ${e}`,s),!1}}mkdir(e){try{let t=e.startsWith("/")||e.match(/^[A-Z]:/)?this.normalizePath(e):this.resolveAppPath(e);return d.existsSync(t)||d.mkdirSync(t,{recursive:!0}),!0}catch{return!1}}readdirSync(e,t){try{return d.readdirSync(e,t)}catch(s){return this.options.debug&&y.warn(`Failed to read directory: ${e}`,s),t&&typeof t=="object"&&"withFileTypes"in t&&t.withFileTypes?[]:[]}}statSync(e){try{return d.statSync(e)}catch(t){return this.options.debug&&y.warn(`Failed to stat file: ${e}`,t),null}}realpathSync(e){return d.realpathSync(e)}watch(e,t,s){return d.watch(e,t,s)}lstatSync(e){try{return d.lstatSync(e)}catch(t){return this.options.debug&&y.warn(`Failed to lstat file: ${e}`,t),null}}async ensureDir(e){try{await d.promises.mkdir(e,{recursive:!0})}catch(t){if(!N(t))throw t}}ensureDirSync(e){try{d.mkdirSync(e,{recursive:!0})}catch(t){if(!N(t))throw t}}async remove(e){await d.promises.rm(e,{recursive:!0,force:!0})}removeSync(e){d.rmSync(e,{recursive:!0,force:!0})}async readdir(e,t){return d.promises.readdir(e,t)}stripBom(e){return e.charCodeAt(0)===65279?e.slice(1):e}getRepoRoot(){return this._repoRoot||process.cwd()}startWriteRecording(){this._writtenPaths=new Set}stopWriteRecording(){if(!this._writtenPaths)throw new Error("stopWriteRecording() called without startWriteRecording()");let e=this._writtenPaths;return this._writtenPaths=null,e}getAppRoot(){return this._appRoot?this._appRoot:this._repoRoot}setAppRoot(e){if(!e)throw new Error("PathResolver.setAppRoot: root cannot be undefined or null");this._appRoot=this.normalizePath(e)}isMonorepo(){let e=F(this._repoRoot,"packages");return this.pathExists(e)}isWithinApp(e){let t=this.normalizePath(W(e)),s=this.getAppRoot(),c=K(s,t),n=this.normalizePath(c);return!n.startsWith("../")&&!n.startsWith("/")}async findFiles(e,t,s={}){let c=this.normalizePath(F(e,t)),n=this.getAppRoot(),r=this.normalizePath(n),a=c.startsWith(r)?c.slice(r.length+1):c,l={absolute:!0,onlyFiles:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:n,ignore:D.SCAN_PATTERNS?.globalIgnore||["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]};return await this._globWithNormalization([a],{...l,...s})}clearCache(){}async _resolveFrameworkI18nPattern(e){let t=D.I18N_PATHS;if(!t)return null;let s=e.replace(t.SOURCE_ROOT+"/",""),c=this.resolveFrameworkPackage("@donotdev/core");if(!c)return null;let n=this.normalizePath(F(c,t.PUBLISHED_ROOT,s)),r=n.replace(/\/[^/]*\*.*$/,"");return this.pathExists(r),n}async _globWithNormalization(e,t){return(await ve(e,t)).map(c=>{let n=typeof c=="string"?c:c.path;return this.normalizePath(n)}).sort()}async resolveFiles(e,t="css"){if(!e||typeof e!="object")return{frameworkFiles:[],consumerFiles:[]};if(t==="i18n")return{frameworkFiles:[],consumerFiles:[]};if(Array.isArray(e.framework)||(e.framework=[]),!Array.isArray(e.consumer))return{frameworkFiles:[],consumerFiles:[]};let s=[...e.framework,...e.consumer];for(let o of s)if(typeof o!="string"||o.trim()==="")return{frameworkFiles:[],consumerFiles:[]};let c=this.getAppRoot(),n=D.getGlobOptionsFor?D.getGlobOptionsFor(t):{ignore:["**/node_modules/**","**/dist/**","**/build/**"]},r=this.normalizePath(c),a=e.framework.map(o=>{let u=this.normalizePath(o);return u.startsWith(r)?u.slice(r.length+1):u}),l=e.consumer.map(o=>{let u=this.normalizePath(o);return u.startsWith(r)?u.slice(r.length+1):u}),m={...n,onlyFiles:!0,absolute:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:c};try{let o=a.length>0?await this._globWithNormalization(a,m):[],u=await this._globWithNormalization(l,m);return{frameworkFiles:o,consumerFiles:u}}catch{return this.options.debug,{frameworkFiles:[],consumerFiles:[]}}}async resolvePatterns(e){if(!D.getPatternsFor)return{framework:[],consumer:[],all:[]};let t=this.getAppRoot(),s=this.getRepoRoot();if(e==="i18n"&&(!t||t===s))throw new Error(`Cannot resolve i18n patterns: appRoot not set (appRoot: ${t}, repoRoot: ${s}). Ensure configResolved hook has run before discovery.`);let c=D.getPatternsFor(e),n=this.isMonorepo();if(e==="i18n"){let l=c,m={eager:l.eager.map(o=>o.startsWith("!")?"!"+this.resolveAppPath(o.slice(1)):this.resolveAppPath(o)),lazy:l.lazy.map(o=>o.startsWith("!")?"!"+this.resolveAppPath(o.slice(1)):this.resolveAppPath(o)),framework:{eager:n?(l.framework?.eager||[]).map(o=>this.resolveRepoPath(o)).filter(Boolean):await Promise.all((l.framework?.eager||[]).map(o=>this._resolveFrameworkI18nPattern(o))).then(o=>o.filter(Boolean)),lazy:n?(l.framework?.lazy||[]).map(o=>this.resolveRepoPath(o)).filter(Boolean):await Promise.all((l.framework?.lazy||[]).map(o=>this._resolveFrameworkI18nPattern(o))).then(o=>o.filter(Boolean))},all:[]};return m.all=[...m.eager,...m.lazy,...m.framework.eager,...m.framework.lazy],m}let r=c,a={framework:n?(r.framework||[]).map(l=>this.resolveRepoPath(l)).filter(Boolean):[],consumer:(r.consumer||[]).map(l=>this.resolveAppPath(l)),all:[]};return a.all=[...a.consumer,...a.framework],a}getEmptyModulePath(){return this.getEmptyCjsModulePath().replace(/\.cjs$/,".js")}getEmptyCjsModulePath(){let e=this.resolvePackage("@donotdev/core/empty");if(!e)throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");return e}_findRepoRoot(e){let t=this.normalizePath(e),s=0,c=this.options.maxLevels;for(;s<c;){let n=this.normalizePath(F(t,Q.TOOLING)),r=this.normalizePath(F(t,Q.CORE));if(this.pathExists(n)&&this.pathExists(r))return t;let a=F(t,"apps");if(this.pathExists(a)&&this.statSync(a)?.isDirectory())return this.normalizePath(t);let l=this.normalizePath(F(t,"package.json"));if(this.pathExists(l)&&this.normalizePath(A(t))===t)return t;let m=this.normalizePath(A(t));if(m===t)break;t=m,s++}return this.normalizePath(e)}};function U(i={}){let{entry:e="src/index.ts",outDir:t="lib",minify:s=!1,sourcemap:c=!0,platform:n="firebase",workspace:r,bundleWorkspaceDeps:a=!1,importFramework:l=!1,external:m=!1,...o}=i,u=w.getInstance(),h=V(r),f={entryPoints:[e],bundle:!0,platform:"node",target:"node20",format:"esm",outdir:t,outExtension:{".js":".js"},minify:s,sourcemap:c,metafile:!0,logLevel:"info",loader:{".ts":"ts",".tsx":"tsx",".css":"empty"},keepNames:!0,treeShaking:!0,...o};a&&Object.keys(h).length>0&&(f.alias=Object.fromEntries(Object.entries(h).map(([g,p])=>[g,u.normalizePath(p)]))),f.mainFields=["module","main"],f.conditions=["react-server","import","module","node"];let S=["fs","path","crypto","util","stream","events","buffer","url","querystring","http","https","zlib","os","child_process","assert","constants","domain","punycode","string_decoder","timers","tty","vm","worker_threads","perf_hooks","async_hooks"],$=[];if(a)try{let g=r?.root||process.cwd(),p=process.cwd(),v=10;for(let k=0;k<v;k++){let x=u.normalizePath(`${p}/package.json`);if(u.pathExists(x)){let E=u.readSync(x,{format:"json"});if(E&&Array.isArray(E.workspaces)){g=u.normalizePath(p);for(let O of E.workspaces)O==="apps/*"||O==="functions"||!O.includes("*")&&!O.includes("/")&&$.push(O);break}}let P=u.getDirname(p);if(P===p)break;p=P}}catch{}let z={name:"external-node-modules",setup(g){g.onResolve({filter:/^firebase($|\/)/},p=>{if(p.path==="firebase-admin"||p.path.startsWith("firebase-admin/")||p.path==="firebase-functions"||p.path.startsWith("firebase-functions/"))return null;let v;if(r?.type==="dndev"&&r.root)v=u.normalizePath(`${r.root}/packages/core/config/functions/firebase-stub.js`);else{let k=import.meta.url,P=new URL(k).pathname.replace(/^\/([A-Z]:)/i,"$1"),E=u.getDirname(P);v=u.normalizePath(`${E}/firebase-stub.js`)}return{path:v}}),g.onResolve({filter:/.*/},p=>{if(p.kind==="entry-point")return null;if(p.path.match(/@donotdev\/functions\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/functions/","");return{path:u.normalizePath(`${r.root}/packages/functions/src/${v}/index.ts`)}}if(p.path==="@donotdev/utils")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/core/utils/src/server/index.ts`)}:g.resolve("@donotdev/utils/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path.match(/@donotdev\/utils\/.+/)&&r?.type==="dndev"){let v=p.path.replace("@donotdev/utils/","");return{path:u.normalizePath(`${r.root}/packages/core/utils/src/${v}/index.ts`)}}if(p.path==="@donotdev/supabase")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/providers/supabase/src/server/index.ts`)}:g.resolve("@donotdev/supabase/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path==="@donotdev/core")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/core/server.ts`)}:g.resolve("@donotdev/core/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path.match(/@donotdev\/core\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/core/","");return{path:u.normalizePath(`${r.root}/packages/core/${v}.ts`)}}if(p.path==="firebase-admin"||p.path.startsWith("firebase-admin/")||p.path==="firebase-functions"||p.path.startsWith("firebase-functions/"))return{path:p.path,external:!0};if(p.path.match(/@donotdev\/core\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/core/","");return{path:u.normalizePath(`${r.root}/packages/core/${v}.ts`)}}if(p.path.startsWith("@donotdev/")||p.path==="valibot"||p.path.startsWith("valibot/"))return null;if($.length>0){let v=p.path.split("/")[0];if($.includes(v))return null}return p.path.startsWith(".")||p.path.startsWith("/")?null:{path:p.path,external:!0}})}};if(f.external=[...S,"firebase-admin","firebase-functions"],f.plugins=[z,...f.plugins||[]],f.define={"process.env.NODE_ENV":JSON.stringify(process.env.NODE_ENV||"production"),...f.define||{}},l&&r.type==="dndev"){let g=r.root,p=u.normalizePath(`${g}/functions/lib`);f.alias={...f.alias,"@donotdev/functions":p}}if(n==="framework"){let g=w.getInstance(),p=r?.root?g.normalizePath(`${r.root}/packages/functions`):process.cwd(),v=g.normalizePath(`${p}/package.json`),k=g.readSync(v,{format:"json"});if(k?.exports){let x={};for(let[,P]of Object.entries(k.exports)){let E=P?.import||P?.default||(typeof P=="string"?P:null);if(!E||!E.endsWith(".ts"))continue;let O=E.replace(/^\.\/src\//,"").replace(/\.ts$/,"");x[O]=E}Object.keys(x).length>0&&(f.entryPoints=x,f.splitting=!0,f.chunkNames="chunks/[name]-[hash]")}}return f}import{spawnSync as ye}from"node:child_process";import T from"node:fs";import ke from"node:os";import j from"node:path";var _=w.getInstance(),B=["create","get","list","listCard","update","delete","bulk"];function te(i,e=0){let t=" ".repeat(e),s="";for(let[c,n]of Object.entries(i))if(n!=null)if(typeof n=="object"&&!Array.isArray(n))Object.keys(n).length===0?s+=`${t}${c}: {}
|
|
4
|
-
`:
|
|
5
|
-
${te(n,e+1)}`;else if(Array.isArray(n))if(n.length===0)
|
|
6
|
-
`;else{
|
|
7
|
-
`;for(let r of n)if(typeof r=="object"&&r!==null){let a=Object.entries(r),[l,m]=a[0];
|
|
8
|
-
`;for(let
|
|
9
|
-
`}}else
|
|
10
|
-
`}else
|
|
11
|
-
`;return
|
|
12
|
-
${String(n.stderr).trim()}`);let r=JSON.parse(
|
|
1
|
+
import I from"node:fs";import k from"node:path";import{fileURLToPath as le}from"node:url";var ue=le(import.meta.url),Oe=k.dirname(ue);function T(){let i=process.cwd(),e=10;for(let t=0;t<e;t++){let o=k.join(i,"package.json");if(I.existsSync(o))try{let n=JSON.parse(I.readFileSync(o,"utf8")),r=n.workspaces&&Array.isArray(n.workspaces);if(r&&n.workspaces.some(s=>s==="packages/**"||s.startsWith("packages/"))&&(I.existsSync(k.join(i,"packages","core"))||I.existsSync(k.join(i,"packages","functions"))))return{type:"dndev",root:i};if(r&&n.workspaces.some(s=>s.includes("dndev/packages"))){let u=n.workspaces.find(f=>f.includes("dndev/packages")).replace(/\/packages.*$/,""),h=k.resolve(i,u);if(I.existsSync(k.join(h,"packages","core")))return{type:"dndev",root:h}}}catch{}let c=k.dirname(i);if(c===i)break;i=c}return{type:"npm",root:process.cwd()}}function pe(i){return i.type==="dndev"?i.root:null}function V(i){let e={};if(i.type==="dndev"){let t=pe(i);t&&(e["@donotdev/types"]=k.join(t,"packages","core","types","src"),e["@donotdev/functions"]=k.join(t,"packages","functions","src"),e["@donotdev/utils"]=k.join(t,"packages","core","utils","src"),e["@donotdev/schemas"]=k.join(t,"packages","core","schemas","src"),e["@donotdev/core"]=k.join(t,"packages","core"))}return e}import*as d from"node:fs";import"node:fs";import{createRequire as he}from"node:module";import{resolve as U,join as F,dirname as O,relative as K,normalize as me,sep as Z,extname as ge}from"node:path";import ve from"fast-glob";var fe="/og-image.png";var L={SOURCE_ROOT:"packages/core/i18n",SOURCE_LOCALES:"packages/core/i18n/locales",SOURCE_EAGER:"packages/core/i18n/locales/eager",SOURCE_LAZY:"packages/core/i18n/locales/lazy",PUBLISHED_ROOT:"i18n",PUBLISHED_LOCALES:"i18n/locales",PUBLISHED_EAGER:"i18n/locales/eager",PUBLISHED_LAZY:"i18n/locales/lazy",PUBLISHED_FLAGS:"i18n/flags"},R={routes:{consumer:["src/**/*Page.tsx","src/pages/**/*Page.tsx"],exclude:["**/node_modules/**","**/dist/**","**/build/**","**/*.test.tsx","**/*.stories.tsx"],extensions:[".tsx"]},css:{consumer:["src/**/*.css"],themes:["src/**/*.css"],extensions:[".css",".scss",".sass"],framework:["packages/ui/src/**/*.css","packages/core/components/src/**/*.css","packages/core/templates/src/**/*.css"]},i18n:{eager:["src/locales/*_*.json"],lazy:["src/**/locales/*_*.json","!src/locales/*_*.json","../../entities/locales/*_*.json"],additional:[],framework:{eager:[`${L.SOURCE_EAGER}/*_*.json`],lazy:[`${L.SOURCE_LAZY}/*_*.json`]},extensions:[".json"]},assets:{consumer:["public/**/*"],fallback:["manifest.json"],modern:["logo.svg","favicon.svg","apple-touch-icon.png","android-chrome-192x192.png","android-chrome-512x512.png"],patterns:["favicon.svg","favicon.ico","favicon-*.png","logo.svg","logo.png","logo.webp","logo.avif","apple-touch-icon*.png","android-chrome-*.png","icon-*x*.png",fe.slice(1)],fonts:["fonts/**/*.woff2","fonts/**/*.woff","fonts/**/*.ttf"],framework:["packages/ui/assets/**/*"]},pwa:{consumer:["public/manifest.json","public/service-worker.js","public/sw.js","public/icon-192x192.png","public/icon-512x512.png","public/favicon.ico","public/favicon.svg","public/apple-touch-icon.png","public/logo.svg"],exclude:["**/node_modules/**","**/dist/**","**/build/**"],extensions:[".json",".js",".png",".svg",".ico"],framework:["packages/ui/assets/**/*"]},globalIgnore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**","**/coverage/**","**/test/**"]};var Y={base:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore},css:{absolute:!0,onlyFiles:!0,ignore:[...R.globalIgnore,"**/*.test.css"]},routes:{absolute:!0,onlyFiles:!0,ignore:[...R.globalIgnore,"**/*.test.tsx","**/*.stories.tsx"]},i18n:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore},assets:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore}};function J(i,e=null){let t=R[i];if(!t)throw new Error(`Unknown pattern type: ${i}`);return e&&t.framework?{...t,framework:t.framework.map(o=>`${e}/${o}`)}:t}function q(i){return Y[i]||Y.base}var D={getGlobOptionsFor:q||void 0,SCAN_PATTERNS:R||void 0,getPatternsFor:J||void 0,I18N_PATHS:L||void 0},y={error:(i,e)=>{},warn:(i,e)=>{},info:i=>{}};function N(i){return typeof i=="object"&&i!==null&&"code"in i&&i.code==="EEXIST"}function X(i,e){return i().catch(t=>{throw new Error(`${e}: ${t instanceof Error?t.message:String(t)}`)})}var Q={CLI:"packages/cli",COMPONENTS:"packages/core/components",CONFIG:"packages/core/config",CORE:"packages/core",CRUD:"packages/core/crud",FEATURES:"packages/features",HOOKS:"packages/core/hooks",I18N:"packages/core/i18n",SCHEMAS:"packages/core/schemas",STORES:"packages/core/stores",TEMPLATES:"packages/templates",TOOLING:"packages/tooling",TYPES:"packages/core/types",UI:"packages/ui",UTILS:"packages/core/utils",AUTH:"packages/features/auth",BILLING:"packages/features/billing",OAUTH:"packages/features/oauth",FIREBASE:"packages/providers/firebase",FUNCTIONS:"packages/functions"},E=class i{static _instance=null;options;_repoRoot;_appRoot=null;_writtenPaths=null;static getInstance(e={}){return i._instance||(i._instance=new i(e)),i._instance}static _reset(){i._instance=null}constructor(e={}){if(i._instance)return i._instance;this.options={maxLevels:e.maxLevels??10,customMarkers:e.customMarkers||[],cache:e.cache??!1,debug:e.debug??!1};try{let t=process.cwd();if(!t)throw new Error("PathResolver: process.cwd() returned undefined. This should never happen.");this._repoRoot=this._findRepoRoot(t)}catch(t){throw new Error(`PathResolver constructor failed: ${t instanceof Error?t.message:String(t)}. cwd: ${process.cwd()}`)}this._appRoot=null,i._instance=this}normalizePath(e){if(!e)return"";try{return me(e).split(Z).join("/")}catch{return String(e).split(Z).join("/")}}getRelativePath(e){let t=this.getAppRoot(),o=K(t,e);return this.normalizePath(o)}getBasename(e){if(!e)return"";let o=this.normalizePath(e).split("/");return o[o.length-1]||""}getDirname(e){return e?this.normalizePath(O(e)):""}resolvePackage(e,t=null){try{let o=t||this.getAppRoot(),n=he(F(o,"package.json")).resolve(e);return this.normalizePath(n)}catch{return null}}resolveFrameworkPackage(e,t=null){let o=this.resolvePackage(`${e}/package.json`,t);if(o)return this.getDirname(o);if(this.isMonorepo()&&e.startsWith("@donotdev/")){let r=e.replace("@donotdev/",""),a=this.resolveRepoPath(`packages/${r}`);if(this.pathExists(a))return a;if(["auth","billing","crud","oauth"].includes(r)){let l=this.resolveRepoPath(`packages/features/${r}`);if(this.pathExists(l))return l}if(r==="firebase"){let l=this.resolveRepoPath(`packages/providers/${r}`);if(this.pathExists(l))return l}}let c=this.resolveAppPath(`node_modules/${e}`);if(this.pathExists(c))return c;let n=this.resolveRepoPath(`node_modules/${e}`);return this.pathExists(n)?n:null}resolvePackageAsset(e,t=null){return this.resolvePackage(e,t)}resolveAppPath(e){let t=this.getAppRoot(),o=U(t,e);return this.normalizePath(o)}resolveRepoPath(e){let t=this.getRepoRoot(),o=this.normalizePath(e),c=U(t,o);return this.normalizePath(c)}resolvePath(e,t){let o=this.normalizePath(t),c=this.normalizePath(e),n=U(o,c);return this.normalizePath(n)}createImportPath(e){return"./"+this.getRelativePath(e)}getFileInfo(e){try{let t=d.statSync(e);return{absolutePath:this.normalizePath(e),relativePath:this.getRelativePath(e),importPath:this.createImportPath(e),size:t.size,isFile:t.isFile(),isDirectory:t.isDirectory()}}catch{return null}}_detectFormat(e,t){return t&&t!=="auto"?t:ge(e).toLowerCase()===".json"?"json":"text"}async read(e,t={}){let{format:o="auto",encoding:c="utf8"}=t,n=this._detectFormat(e,o);try{if(n==="buffer")return await d.promises.readFile(e);let r=await d.promises.readFile(e,c),a=this.stripBom(r);return n==="json"?JSON.parse(a):a}catch(r){return this.options.debug&&y.warn(`Failed to read file: ${e}`,r),null}}readSync(e,t={}){let{format:o="auto",encoding:c="utf8"}=t,n=this._detectFormat(e,o);try{if(n==="buffer")return d.readFileSync(e);let r=d.readFileSync(e,c),a=this.stripBom(r);return n==="json"?JSON.parse(a):a}catch(r){return this.options.debug&&y.warn(`Failed to read file: ${e}`,r),null}}async write(e,t,o={}){let{format:c="auto",overwrite:n=!1,dryRun:r=!1,verbose:a=!1}=o,l=this.normalizePath(e),m=this.normalizePath(O(l)),s=this.pathExists(l);if(s&&!n)return a&&y.info(`Skipping existing file: ${l}`),!1;if(r)return y.info(`[DRY RUN] Would write file: ${l}`),!0;try{await d.promises.mkdir(m,{recursive:!0})}catch(f){if(!N(f))throw f}let u=this._detectFormat(e,c),h;Buffer.isBuffer(t)?h=t:u==="json"&&typeof t=="object"?h=`${JSON.stringify(t,null,2)}
|
|
2
|
+
`:h=String(t);try{return await X(async()=>(Buffer.isBuffer(h)?await d.promises.writeFile(l,h):await d.promises.writeFile(l,h,"utf8"),a&&y.info(`${s?"Updated":"Created"} file: ${l}`),!0),`Failed to write file: ${l}`)}catch{return!1}}writeSync(e,t,o={}){let{format:c="auto",overwrite:n=!1,dryRun:r=!1,verbose:a=!1}=o,l=this.normalizePath(e),m=this.normalizePath(O(l)),s=this.pathExists(l);if(s&&!n)return a&&y.info(`Skipping existing file: ${l}`),!1;if(r)return y.info(`[DRY RUN] Would write file: ${l}`),!0;try{d.mkdirSync(m,{recursive:!0})}catch(f){if(!N(f))throw f}let u=this._detectFormat(e,c),h;Buffer.isBuffer(t)?h=t:u==="json"&&typeof t=="object"?h=`${JSON.stringify(t,null,2)}
|
|
3
|
+
`:h=String(t);try{return Buffer.isBuffer(h)?d.writeFileSync(l,h):d.writeFileSync(l,h,"utf8"),this._writtenPaths?.add(l),a&&y.info(`${s?"Updated":"Created"} file: ${l}`),!0}catch(f){throw new Error(`Failed to write file: ${l}: ${f instanceof Error?f.message:String(f)}`)}}async copy(e,t,o={}){let{overwrite:c=!1,dryRun:n=!1,verbose:r=!1}=o,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!c)return r&&y.info(`Skipping existing file: ${a}`),!1;if(n)return y.info(`[DRY RUN] Would copy file: ${a}`),!0;let m=this.normalizePath(O(a));try{await d.promises.mkdir(m,{recursive:!0})}catch(s){if(!N(s))throw s}try{return await X(async()=>(await d.promises.copyFile(e,a),r&&y.info(`${l?"Updated":"Created"} file: ${a}`),!0),`Failed to copy file from ${e} to ${a}`)}catch{return!1}}copySync(e,t,o={}){let{overwrite:c=!1,dryRun:n=!1,verbose:r=!1}=o,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!c)return r&&y.info(`Skipping existing file: ${a}`),!1;if(n)return y.info(`[DRY RUN] Would copy file: ${a}`),!0;let m=this.normalizePath(O(a));try{d.mkdirSync(m,{recursive:!0})}catch(s){if(!N(s))throw s}try{return d.copyFileSync(e,a),this._writtenPaths?.add(a),r&&y.info(`${l?"Updated":"Created"} file: ${a}`),!0}catch{return!1}}pathExists(e,t=!1){try{return d.existsSync(e)}catch(o){return t||y.error(`Error checking path existence: ${e}`,o),!1}}mkdir(e){try{let t=e.startsWith("/")||e.match(/^[A-Z]:/)?this.normalizePath(e):this.resolveAppPath(e);return d.existsSync(t)||d.mkdirSync(t,{recursive:!0}),!0}catch{return!1}}readdirSync(e,t){try{return d.readdirSync(e,t)}catch(o){return this.options.debug&&y.warn(`Failed to read directory: ${e}`,o),t&&typeof t=="object"&&"withFileTypes"in t&&t.withFileTypes?[]:[]}}statSync(e){try{return d.statSync(e)}catch(t){return this.options.debug&&y.warn(`Failed to stat file: ${e}`,t),null}}realpathSync(e){return d.realpathSync(e)}watch(e,t,o){return d.watch(e,t,o)}lstatSync(e){try{return d.lstatSync(e)}catch(t){return this.options.debug&&y.warn(`Failed to lstat file: ${e}`,t),null}}async ensureDir(e){try{await d.promises.mkdir(e,{recursive:!0})}catch(t){if(!N(t))throw t}}ensureDirSync(e){try{d.mkdirSync(e,{recursive:!0})}catch(t){if(!N(t))throw t}}async remove(e){await d.promises.rm(e,{recursive:!0,force:!0})}removeSync(e){d.rmSync(e,{recursive:!0,force:!0})}async readdir(e,t){return d.promises.readdir(e,t)}stripBom(e){return e.charCodeAt(0)===65279?e.slice(1):e}getRepoRoot(){return this._repoRoot||process.cwd()}startWriteRecording(){this._writtenPaths=new Set}stopWriteRecording(){if(!this._writtenPaths)throw new Error("stopWriteRecording() called without startWriteRecording()");let e=this._writtenPaths;return this._writtenPaths=null,e}getAppRoot(){return this._appRoot?this._appRoot:this._repoRoot}setAppRoot(e){if(!e)throw new Error("PathResolver.setAppRoot: root cannot be undefined or null");this._appRoot=this.normalizePath(e)}isMonorepo(){let e=F(this._repoRoot,"packages");return this.pathExists(e)}isWithinApp(e){let t=this.normalizePath(U(e)),o=this.getAppRoot(),c=K(o,t),n=this.normalizePath(c);return!n.startsWith("../")&&!n.startsWith("/")}async findFiles(e,t,o={}){let c=this.normalizePath(F(e,t)),n=this.getAppRoot(),r=this.normalizePath(n),a=c.startsWith(r)?c.slice(r.length+1):c,l={absolute:!0,onlyFiles:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:n,ignore:D.SCAN_PATTERNS?.globalIgnore||["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]};return await this._globWithNormalization([a],{...l,...o})}clearCache(){}async _resolveFrameworkI18nPattern(e){let t=D.I18N_PATHS;if(!t)return null;let o=e.replace(t.SOURCE_ROOT+"/",""),c=this.resolveFrameworkPackage("@donotdev/core");if(!c)return null;let n=this.normalizePath(F(c,t.PUBLISHED_ROOT,o)),r=n.replace(/\/[^/]*\*.*$/,"");return this.pathExists(r),n}async _globWithNormalization(e,t){return(await ve(e,t)).map(c=>{let n=typeof c=="string"?c:c.path;return this.normalizePath(n)}).sort()}async resolveFiles(e,t="css"){if(!e||typeof e!="object")return{frameworkFiles:[],consumerFiles:[]};if(t==="i18n")return{frameworkFiles:[],consumerFiles:[]};if(Array.isArray(e.framework)||(e.framework=[]),!Array.isArray(e.consumer))return{frameworkFiles:[],consumerFiles:[]};let o=[...e.framework,...e.consumer];for(let s of o)if(typeof s!="string"||s.trim()==="")return{frameworkFiles:[],consumerFiles:[]};let c=this.getAppRoot(),n=D.getGlobOptionsFor?D.getGlobOptionsFor(t):{ignore:["**/node_modules/**","**/dist/**","**/build/**"]},r=this.normalizePath(c),a=e.framework.map(s=>{let u=this.normalizePath(s);return u.startsWith(r)?u.slice(r.length+1):u}),l=e.consumer.map(s=>{let u=this.normalizePath(s);return u.startsWith(r)?u.slice(r.length+1):u}),m={...n,onlyFiles:!0,absolute:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:c};try{let s=a.length>0?await this._globWithNormalization(a,m):[],u=await this._globWithNormalization(l,m);return{frameworkFiles:s,consumerFiles:u}}catch{return this.options.debug,{frameworkFiles:[],consumerFiles:[]}}}async resolvePatterns(e){if(!D.getPatternsFor)return{framework:[],consumer:[],all:[]};let t=this.getAppRoot(),o=this.getRepoRoot();if(e==="i18n"&&(!t||t===o))throw new Error(`Cannot resolve i18n patterns: appRoot not set (appRoot: ${t}, repoRoot: ${o}). Ensure configResolved hook has run before discovery.`);let c=D.getPatternsFor(e),n=this.isMonorepo();if(e==="i18n"){let l=c,m={eager:l.eager.map(s=>s.startsWith("!")?"!"+this.resolveAppPath(s.slice(1)):this.resolveAppPath(s)),lazy:l.lazy.map(s=>s.startsWith("!")?"!"+this.resolveAppPath(s.slice(1)):this.resolveAppPath(s)),framework:{eager:n?(l.framework?.eager||[]).map(s=>this.resolveRepoPath(s)).filter(Boolean):await Promise.all((l.framework?.eager||[]).map(s=>this._resolveFrameworkI18nPattern(s))).then(s=>s.filter(Boolean)),lazy:n?(l.framework?.lazy||[]).map(s=>this.resolveRepoPath(s)).filter(Boolean):await Promise.all((l.framework?.lazy||[]).map(s=>this._resolveFrameworkI18nPattern(s))).then(s=>s.filter(Boolean))},all:[]};return m.all=[...m.eager,...m.lazy,...m.framework.eager,...m.framework.lazy],m}let r=c,a={framework:n?(r.framework||[]).map(l=>this.resolveRepoPath(l)).filter(Boolean):[],consumer:(r.consumer||[]).map(l=>this.resolveAppPath(l)),all:[]};return a.all=[...a.consumer,...a.framework],a}getEmptyModulePath(){return this.getEmptyCjsModulePath().replace(/\.cjs$/,".js")}getEmptyCjsModulePath(){let e=this.resolvePackage("@donotdev/core/empty");if(!e)throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");return e}_findRepoRoot(e){let t=this.normalizePath(e),o=0,c=this.options.maxLevels;for(;o<c;){let n=this.normalizePath(F(t,Q.TOOLING)),r=this.normalizePath(F(t,Q.CORE));if(this.pathExists(n)&&this.pathExists(r))return t;let a=F(t,"apps");if(this.pathExists(a)&&this.statSync(a)?.isDirectory())return this.normalizePath(t);let l=this.normalizePath(F(t,"package.json"));if(this.pathExists(l)&&this.normalizePath(O(t))===t)return t;let m=this.normalizePath(O(t));if(m===t)break;t=m,o++}return this.normalizePath(e)}};function M(i={}){let{entry:e="src/index.ts",outDir:t="lib",minify:o=!1,sourcemap:c=!0,platform:n="firebase",workspace:r,bundleWorkspaceDeps:a=!1,importFramework:l=!1,external:m=!1,...s}=i,u=E.getInstance(),h=V(r),f={entryPoints:[e],bundle:!0,platform:"node",target:"node20",format:"esm",outdir:t,outExtension:{".js":".js"},minify:o,sourcemap:c,metafile:!0,logLevel:"info",loader:{".ts":"ts",".tsx":"tsx",".css":"empty"},keepNames:!0,treeShaking:!0,...s};a&&Object.keys(h).length>0&&(f.alias=Object.fromEntries(Object.entries(h).map(([g,p])=>[g,u.normalizePath(p)]))),f.mainFields=["module","main"],f.conditions=["react-server","import","module","node"];let w=["fs","path","crypto","util","stream","events","buffer","url","querystring","http","https","zlib","os","child_process","assert","constants","domain","punycode","string_decoder","timers","tty","vm","worker_threads","perf_hooks","async_hooks"],$=[];if(a)try{let g=r?.root||process.cwd(),p=process.cwd(),v=10;for(let b=0;b<v;b++){let x=u.normalizePath(`${p}/package.json`);if(u.pathExists(x)){let S=u.readSync(x,{format:"json"});if(S&&Array.isArray(S.workspaces)){g=u.normalizePath(p);for(let A of S.workspaces)A==="apps/*"||A==="functions"||!A.includes("*")&&!A.includes("/")&&$.push(A);break}}let P=u.getDirname(p);if(P===p)break;p=P}}catch{}let z={name:"external-node-modules",setup(g){g.onResolve({filter:/^firebase($|\/)/},p=>{if(p.path==="firebase-admin"||p.path.startsWith("firebase-admin/")||p.path==="firebase-functions"||p.path.startsWith("firebase-functions/"))return null;let v;if(r?.type==="dndev"&&r.root)v=u.normalizePath(`${r.root}/packages/core/config/functions/firebase-stub.js`);else{let b=import.meta.url,P=new URL(b).pathname.replace(/^\/([A-Z]:)/i,"$1"),S=u.getDirname(P);v=u.normalizePath(`${S}/firebase-stub.js`)}return{path:v}}),g.onResolve({filter:/.*/},p=>{if(p.kind==="entry-point")return null;if(p.path.match(/@donotdev\/functions\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/functions/","");return{path:u.normalizePath(`${r.root}/packages/functions/src/${v}/index.ts`)}}if(p.path==="@donotdev/utils")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/core/utils/src/server/index.ts`)}:g.resolve("@donotdev/utils/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path.match(/@donotdev\/utils\/.+/)&&r?.type==="dndev"){let v=p.path.replace("@donotdev/utils/","");return{path:u.normalizePath(`${r.root}/packages/core/utils/src/${v}/index.ts`)}}if(p.path==="@donotdev/supabase")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/providers/supabase/src/server/index.ts`)}:g.resolve("@donotdev/supabase/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path==="@donotdev/core")return r?.type==="dndev"?{path:u.normalizePath(`${r.root}/packages/core/server.ts`)}:g.resolve("@donotdev/core/server",{kind:p.kind,resolveDir:p.resolveDir});if(p.path.match(/@donotdev\/core\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/core/","");return{path:u.normalizePath(`${r.root}/packages/core/${v}.ts`)}}if(p.path==="firebase-admin"||p.path.startsWith("firebase-admin/")||p.path==="firebase-functions"||p.path.startsWith("firebase-functions/"))return{path:p.path,external:!0};if(p.path.match(/@donotdev\/core\/.+/)&&a&&r?.type==="dndev"){let v=p.path.replace("@donotdev/core/","");return{path:u.normalizePath(`${r.root}/packages/core/${v}.ts`)}}if(p.path.startsWith("@donotdev/")||p.path==="valibot"||p.path.startsWith("valibot/"))return null;if($.length>0){let v=p.path.split("/")[0];if($.includes(v))return null}return p.path.startsWith(".")||p.path.startsWith("/")?null:{path:p.path,external:!0}})}};if(f.external=[...w,"firebase-admin","firebase-functions"],f.plugins=[z,...f.plugins||[]],f.define={"process.env.NODE_ENV":JSON.stringify(process.env.NODE_ENV||"production"),...f.define||{}},l&&r.type==="dndev"){let g=r.root,p=u.normalizePath(`${g}/functions/lib`);f.alias={...f.alias,"@donotdev/functions":p}}if(n==="framework"){let g=E.getInstance(),p=r?.root?g.normalizePath(`${r.root}/packages/functions`):process.cwd(),v=g.normalizePath(`${p}/package.json`),b=g.readSync(v,{format:"json"});if(b?.exports){let x={};for(let[,P]of Object.entries(b.exports)){let S=P?.import||P?.default||(typeof P=="string"?P:null);if(!S||!S.endsWith(".ts"))continue;let A=S.replace(/^\.\/src\//,"").replace(/\.ts$/,"");x[A]=S}Object.keys(x).length>0&&(f.entryPoints=x,f.splitting=!0,f.chunkNames="chunks/[name]-[hash]")}}return f}import{spawnSync as ye}from"node:child_process";import C from"node:fs";import be from"node:os";import j from"node:path";var _=E.getInstance(),W=["create","get","list","listCard","update","delete","bulk"];function te(i,e=0){let t=" ".repeat(e),o="";for(let[c,n]of Object.entries(i))if(n!=null)if(typeof n=="object"&&!Array.isArray(n))Object.keys(n).length===0?o+=`${t}${c}: {}
|
|
4
|
+
`:o+=`${t}${c}:
|
|
5
|
+
${te(n,e+1)}`;else if(Array.isArray(n))if(n.length===0)o+=`${t}${c}: []
|
|
6
|
+
`;else{o+=`${t}${c}:
|
|
7
|
+
`;for(let r of n)if(typeof r=="object"&&r!==null){let a=Object.entries(r),[l,m]=a[0];o+=`${t} - ${l}: ${m}
|
|
8
|
+
`;for(let s=1;s<a.length;s++){let[u,h]=a[s];o+=`${t} ${u}: ${h}
|
|
9
|
+
`}}else o+=`${t} - ${r}
|
|
10
|
+
`}else o+=`${t}${c}: ${n}
|
|
11
|
+
`;return o}function re(i){if(!_.pathExists(i))return[];let e=_.readSync(i,{format:"text"}),t=[],o=e.matchAll(/export\s*\{([^}]+)\}/g);for(let n of o)if(n[1]){let r=n[1].split(",").map(a=>{let l=a.trim().split(/\s+as\s+/);return(l[1]||l[0]||"").trim()}).filter(Boolean);t.push(...r)}let c=e.matchAll(/export\s+const\s+(\w+)/g);for(let n of c)n[1]&&t.push(n[1]);return[...new Set(t)]}var ke=6e4;function Pe(i){let e=i;for(;;){let t=j.join(e,"node_modules","firebase-functions","package.json");if(C.existsSync(t)){let c=JSON.parse(C.readFileSync(t,"utf8")),n=typeof c.bin=="string"?c.bin:c.bin?.["firebase-functions"];if(!n)throw new Error(`${t} declares no firebase-functions bin: upgrade firebase-functions.`);return j.join(j.dirname(t),n)}let o=j.dirname(e);if(o===e)throw new Error(`firebase-functions not found from ${i}: add it to the functions package dependencies.`);e=o}}function B(i="."){let e=j.resolve(i),t=Pe(e),o=C.mkdtempSync(j.join(be.tmpdir(),"dndev-functions-manifest-")),c=j.join(o,"manifest.json");try{let n=ye("node",[t],{cwd:e,env:{HOME:process.env.HOME,PATH:process.env.PATH,NODE_ENV:process.env.NODE_ENV,FUNCTIONS_MANIFEST_OUTPUT_PATH:c},encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:ke});if(n.error)throw new Error(`Could not read the secrets the functions declare (firebase-functions manifest in ${e}): ${n.error.message}`);if(n.status!==0)throw new Error(`Could not read the secrets the functions declare: the firebase-functions SDK failed to load the bundle in ${e} (exit ${n.status}). Build the functions first.
|
|
12
|
+
${String(n.stderr).trim()}`);let r=JSON.parse(C.readFileSync(c,"utf8")),a={};for(let[l,m]of Object.entries(r.endpoints??{})){let s=(m?.secretEnvironmentVariables??[]).map(u=>{if(typeof u?.key!="string"||!u.key)throw new Error(`firebase-functions manifest: endpoint "${l}" has a secret without a key.`);return u.key});s.length>0&&(a[m.entryPoint??l]=s)}return a}finally{C.rmSync(o,{recursive:!0,force:!0})}}function ee(i,e){let t=i?.length?i:e;return t?.length?t.map(o=>({key:o})):void 0}function oe(i){return W.some(e=>i.startsWith(`${e}_`))}function se(i,e={}){let t=i.defaults||{},o=t.labels||{},c={},n=e.declaredSecrets??B(e.functionsDir),r=e.entryFile?re(e.entryFile):[],a=i.functions||{},l=new Set(Object.keys(a));for(let s of r)!oe(s)&&!l.has(s)&&l.add(s);for(let s of l){let u=a[s]||{},h={...o,...u.labels};u.category&&(h.category=u.category);let f=u.entryPoint||s;c[s]={region:u.region||t.region||["europe-west1"],platform:u.platform||t.platform||"gcfv2",entryPoint:f,labels:h},u.trigger==="http"?c[s].httpsTrigger={}:c[s].callableTrigger={};let w=ee(u.secrets,n[f]);w&&(c[s].secretEnvironmentVariables=w)}if(i.crud?.entities)for(let s of i.crud.entities)for(let u of W){let h=`${u}_${s}`;c[h]={region:t.region||["europe-west1"],platform:t.platform||"gcfv2",callableTrigger:{},entryPoint:h,labels:{...o,category:"crud"}};let f=ee(void 0,n[h]);f&&(c[h].secretEnvironmentVariables=f)}return`# Firebase Functions Configuration
|
|
13
13
|
# Generated by @donotdev/core/functions - DO NOT EDIT MANUALLY
|
|
14
14
|
# Generated at: ${new Date().toISOString()}
|
|
15
15
|
|
|
16
|
-
`+te({endpoints:c,specVersion:"v1alpha1",requiredAPIs:[]})}function ne(i){let e=i.crud?.entities||[],
|
|
16
|
+
`+te({endpoints:c,specVersion:"v1alpha1",requiredAPIs:[]})}function ne(i){let e=i.crud?.entities||[],o=[`// Auto-generated CRUD exports - DO NOT EDIT MANUALLY
|
|
17
17
|
// Generated by @donotdev/core/functions at ${new Date().toISOString()}
|
|
18
18
|
|
|
19
19
|
import * as entities from 'entities';
|
|
20
20
|
import { createCrudFunctions } from '@donotdev/functions/firebase';
|
|
21
21
|
|
|
22
22
|
const crud = createCrudFunctions(entities);
|
|
23
|
-
`];for(let c of e){let n=[""];for(let r of
|
|
24
|
-
`))}return
|
|
23
|
+
`];for(let c of e){let n=[""];for(let r of W){let a=`${r}_${c}`;n.push(`export const ${a} = crud['${a}'];`)}o.push(n.join(`
|
|
24
|
+
`))}return o.join(`
|
|
25
25
|
`)+`
|
|
26
|
-
`}function G(i,e={}){let t=Object.keys(i.functions||{}),
|
|
26
|
+
`}function G(i,e={}){let t=Object.keys(i.functions||{}),o=[];if(i.crud?.entities)for(let l of i.crud.entities)for(let m of W)o.push(`${m}_${l}`);let n=(e.entryFile?re(e.entryFile):[]).filter(l=>!oe(l)&&!t.includes(l)),r=[...t,...n],a=e.declaredSecrets??B(e.functionsDir);return{yaml:se(i,{...e,declaredSecrets:a}),functions:[...r,...o],staticFunctions:r,crudFunctions:o,autoDetected:n,autoSecrets:[...new Set(Object.values(a).flat())].sort(),declaredSecrets:a}}function H(i,e={}){let t=new Set;for(let s of Object.values(i.functions||{}))if(s.secrets)for(let u of s.secrets)t.add(u);let o=e.declaredSecrets??B(e.functionsDir);for(let s of Object.values(o))for(let u of s)t.add(u);if(t.size===0||!_.pathExists(".env"))return{stripped:[],kept:0};let n=_.readSync(".env").split(/\r?\n/),r=[],a=[];for(let s of n){let u=s.trim();if(!u||u.startsWith("#")){r.push(s);continue}let h=u.indexOf("="),f=h>0?u.substring(0,h).trim():"";t.has(f)?a.push(s):r.push(s)}if(a.length===0)return{stripped:[],kept:r.length};_.writeSync(".env",r.join(`
|
|
27
27
|
`),{overwrite:!0});let l=`# Secrets managed by sync-secrets (auto-filtered by build)
|
|
28
|
-
`;if(_.pathExists(".env.local")){let
|
|
28
|
+
`;if(_.pathExists(".env.local")){let s=_.readSync(".env.local"),u=new Set(s.split(/\r?\n/).filter(f=>f.trim()&&!f.trim().startsWith("#")).map(f=>f.split("=")[0].trim())),h=a.filter(f=>!u.has(f.split("=")[0].trim()));h.length>0&&_.writeSync(".env.local",s.trimEnd()+`
|
|
29
29
|
`+l+h.join(`
|
|
30
30
|
`)+`
|
|
31
31
|
`,{overwrite:!0})}else _.writeSync(".env.local",l+a.join(`
|
|
32
32
|
`)+`
|
|
33
|
-
`);return{stripped:a.map(
|
|
34
|
-
`);function xe(i){return i.startsWith("_")||i.startsWith(".")||i.endsWith(".d.ts")||/\.(test|spec)\.ts$/.test(i)?!1:i.endsWith(".ts")}function _e(i,e){let t=[],
|
|
33
|
+
`);return{stripped:a.map(s=>s.split("=")[0].trim()),kept:r.length}}function Se(i={}){let e=T();return M({...i,platform:"firebase",bundleWorkspaceDeps:!0,importFramework:!0,workspace:e})}async function Ee(i,e={}){let{entry:t="src/index.ts",outDir:o="lib",minify:c=process.env.NODE_ENV==="production",sourcemap:n=!0,analyze:r=!1,entryFile:a="src/index.ts",envPath:l=".env",...m}=e;try{let s=E.getInstance(),u=ne(i);s.writeSync("src/.generated/crud-exports.ts",u,{overwrite:!0});let{build:h}=await import("esbuild"),f=Se({entry:t,outDir:o,minify:c,sourcemap:n,...m}),w=await h(f);w.errors.length>0&&process.exit(1),w.warnings.length>0;let{yaml:$,staticFunctions:z,crudFunctions:g,autoDetected:p,autoSecrets:v,declaredSecrets:b}=G(i,{entryFile:a,envPath:l});s.writeSync("functions.yaml",$,{overwrite:!0}),p.length>0,v.length>0;let{stripped:x}=H(i,{declaredSecrets:b});if(x.length>0,r&&w.metafile){let{analyzeMetafile:P}=await import("esbuild"),S=await P(w.metafile)}}catch{process.exit(1)}}var ie="nodejs22.x",we=["import { createRequire as __dndevCreateRequire } from 'node:module';","import { fileURLToPath as __dndevFileURLToPath } from 'node:url';","import { dirname as __dndevDirname } from 'node:path';","const require = __dndevCreateRequire(import.meta.url);","const __filename = __dndevFileURLToPath(import.meta.url);","const __dirname = __dndevDirname(__filename);"].join(`
|
|
34
|
+
`);function xe(i){return i.startsWith("_")||i.startsWith(".")||i.endsWith(".d.ts")||/\.(test|spec)\.ts$/.test(i)?!1:i.endsWith(".ts")}function _e(i,e){let t=[],o=(c,n)=>{for(let r of i.readdirSync(c,{withFileTypes:!0}))if(r.isDirectory()){if(r.name==="__tests__"||r.name.startsWith("_")||r.name.startsWith("."))continue;o(`${c}/${r.name}`,`${n}${r.name}/`)}else r.isFile()&&xe(r.name)&&t.push(`${n}${r.name}`)};return o(e,""),t.sort()}function ae({runtime:i,sourcemap:e}){return{runtime:i,handler:"index.mjs",launcherType:"Nodejs",shouldAddHelpers:!0,shouldAddSourcemapSupport:e}}async function Re(i={}){let{apiDir:e="src/api",outDir:t=".vercel/output",runtime:o=ie,minify:c=process.env.NODE_ENV==="production",sourcemap:n=!0}=i,r=E.getInstance(),a=r.normalizePath(process.cwd()),l=r.normalizePath(`${a}/${e}`),m=r.normalizePath(`${a}/${t}/functions`);try{if(!r.statSync(l)?.isDirectory())throw new Error(`${e}/ not found in ${a}: Vercel functions live in ${e}/<path>.ts (URL /api/<path>)`);let s=_e(r,l);if(s.length===0)throw new Error(`No function in ${e}/ (expected ${e}/<path>.ts)`);let u=s.filter(g=>/[[\]]/.test(g));if(u.length>0)throw new Error(`Dynamic route segments are not supported in ${e}/: ${u.join(", ")}. Read the value from the query string or the body instead.`);r.removeSync(m);let h=Object.fromEntries(s.map(g=>[`api/${g.slice(0,-3)}.func/index`,`${l}/${g}`])),{build:f}=await import("esbuild");(await f({entryPoints:h,outdir:m,outExtension:{".js":".mjs"},bundle:!0,platform:"node",target:"node22",format:"esm",minify:c,sourcemap:n,keepNames:!0,treeShaking:!0,logLevel:"info",loader:{".css":"empty"},mainFields:["module","main"],conditions:["react-server","import","module","node"],banner:{js:we},define:{"process.env.NODE_ENV":JSON.stringify(process.env.NODE_ENV||"production")}})).errors.length>0&&process.exit(1);let $=ae({runtime:o,sourcemap:!!n}),z=s.map(g=>`api/${g.slice(0,-3)}`);for(let g of z)r.writeSync(`${m}/${g}.func/.vc-config.json`,$,{format:"json",overwrite:!0});return z}catch{process.exit(1)}}function ce(i={}){let{entry:e="src/index.ts",outDir:t="lib",minify:o=!1,sourcemap:c=!0,platform:n="firebase",...r}=i,a=T();return M({entry:e,outDir:t,minify:o,sourcemap:c,platform:n,workspace:a,...r})}function st(i={}){return ce({...i,platform:"framework",bundleWorkspaceDeps:!0})}function nt(i={}){return ce({...i,platform:"firebase",bundleWorkspaceDeps:!0,importFramework:!0})}export{ie as VERCEL_FUNCTIONS_RUNTIME,Ee as buildFunctions,Re as buildVercelFunctions,nt as createAppFunctionsConfig,ce as createFunctionsEsbuildConfig,st as createRootFunctionsConfig,B as detectDeclaredSecrets,H as filterEnvSecrets,se as generateFunctionsYaml,G as generateFunctionsYamlWithInfo,ae as vercelFunctionConfig};
|
|
@@ -358,7 +358,8 @@
|
|
|
358
358
|
"sheet": {
|
|
359
359
|
"navigation": "Navigation",
|
|
360
360
|
"codeInspector": "Code-Inspektor",
|
|
361
|
-
"debugPanel": "Debug-Panel"
|
|
361
|
+
"debugPanel": "Debug-Panel",
|
|
362
|
+
"close": "Panel schließen"
|
|
362
363
|
},
|
|
363
364
|
"routeError": {
|
|
364
365
|
"title": "Etwas ist schief gelaufen",
|
|
@@ -358,7 +358,8 @@
|
|
|
358
358
|
"sheet": {
|
|
359
359
|
"navigation": "Navegación",
|
|
360
360
|
"codeInspector": "Inspector de código",
|
|
361
|
-
"debugPanel": "Panel de depuración"
|
|
361
|
+
"debugPanel": "Panel de depuración",
|
|
362
|
+
"close": "Cerrar panel"
|
|
362
363
|
},
|
|
363
364
|
"routeError": {
|
|
364
365
|
"title": "Algo salió mal",
|
|
@@ -374,7 +374,8 @@
|
|
|
374
374
|
"sheet": {
|
|
375
375
|
"navigation": "Navigation",
|
|
376
376
|
"codeInspector": "Inspecteur de code",
|
|
377
|
-
"debugPanel": "Panneau de débogage"
|
|
377
|
+
"debugPanel": "Panneau de débogage",
|
|
378
|
+
"close": "Fermer le panneau"
|
|
378
379
|
},
|
|
379
380
|
"routeError": {
|
|
380
381
|
"title": "Une erreur s'est produite",
|
|
@@ -358,7 +358,8 @@
|
|
|
358
358
|
"sheet": {
|
|
359
359
|
"navigation": "Navigazione",
|
|
360
360
|
"codeInspector": "Ispettore codice",
|
|
361
|
-
"debugPanel": "Pannello debug"
|
|
361
|
+
"debugPanel": "Pannello debug",
|
|
362
|
+
"close": "Chiudi pannello"
|
|
362
363
|
},
|
|
363
364
|
"routeError": {
|
|
364
365
|
"title": "Qualcosa è andato storto",
|
|
@@ -374,7 +374,8 @@
|
|
|
374
374
|
"sheet": {
|
|
375
375
|
"navigation": "Nawigacja",
|
|
376
376
|
"codeInspector": "Inspektor kodu",
|
|
377
|
-
"debugPanel": "Panel debugowania"
|
|
377
|
+
"debugPanel": "Panel debugowania",
|
|
378
|
+
"close": "Zamknij panel"
|
|
378
379
|
},
|
|
379
380
|
"routeError": {
|
|
380
381
|
"title": "Coś poszło nie tak",
|
|
@@ -358,7 +358,8 @@
|
|
|
358
358
|
"sheet": {
|
|
359
359
|
"navigation": "Navegação",
|
|
360
360
|
"codeInspector": "Inspetor de Código",
|
|
361
|
-
"debugPanel": "Painel de Depuração"
|
|
361
|
+
"debugPanel": "Painel de Depuração",
|
|
362
|
+
"close": "Fechar painel"
|
|
362
363
|
},
|
|
363
364
|
"routeError": {
|
|
364
365
|
"title": "Algo deu errado",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"signingIn": "جاري تسجيل الدخول...",
|
|
36
36
|
"creatingAccount": "جاري إنشاء الحساب...",
|
|
37
37
|
"email": "البريد الإلكتروني",
|
|
38
|
+
"name": "الاسم",
|
|
38
39
|
"password": "كلمة المرور",
|
|
39
40
|
"emailHint": "أدخل عنوان بريدك الإلكتروني",
|
|
40
41
|
"passwordHintSignin": "أدخل كلمة المرور",
|
|
@@ -115,6 +116,10 @@
|
|
|
115
116
|
"passwordStrength.fair": "متوسطة",
|
|
116
117
|
"passwordStrength.good": "جيدة",
|
|
117
118
|
"passwordStrength.strong": "قوية",
|
|
119
|
+
"passwordToggle": {
|
|
120
|
+
"show": "إظهار كلمة المرور",
|
|
121
|
+
"hide": "إخفاء كلمة المرور"
|
|
122
|
+
},
|
|
118
123
|
"rememberMe": "تذكرني",
|
|
119
124
|
"signUp": "إنشاء حساب",
|
|
120
125
|
"alreadyHaveAccount": "هل لديك حساب بالفعل؟ تسجيل الدخول",
|
|
@@ -128,7 +133,19 @@
|
|
|
128
133
|
"email_not_confirmed": "يرجى التحقق من بريدك الإلكتروني قبل تسجيل الدخول.",
|
|
129
134
|
"invalid_credentials": "بريد إلكتروني أو كلمة مرور غير صحيحة.",
|
|
130
135
|
"weak_password": "كلمة المرور ضعيفة جداً. يرجى اختيار كلمة مرور أقوى.",
|
|
131
|
-
"breached_password": "ظهرت كلمة المرور هذه في تسريب بيانات. يرجى اختيار كلمة مرور مختلفة."
|
|
136
|
+
"breached_password": "ظهرت كلمة المرور هذه في تسريب بيانات. يرجى اختيار كلمة مرور مختلفة.",
|
|
137
|
+
"invalid_code": "هذا الرمز غير صحيح أو منتهي الصلاحية. تحقق من البريد أو اطلب رمزاً جديداً.",
|
|
138
|
+
"code_expired": "انتهت صلاحية هذا الرمز. اطلب رمزاً جديداً."
|
|
139
|
+
},
|
|
140
|
+
"codeConfirmation": {
|
|
141
|
+
"label": "رمز التأكيد",
|
|
142
|
+
"digit": "الرقم {{index}} من {{length}}",
|
|
143
|
+
"incomplete": "أدخل الرمز المكوّن من {{length}} أرقام.",
|
|
144
|
+
"resend": "إعادة إرسال الرمز",
|
|
145
|
+
"resend_in": "إعادة إرسال الرمز بعد {{seconds}} ث",
|
|
146
|
+
"sent": "تم إرسال رمز جديد.",
|
|
147
|
+
"intro": "أدخل الرمز المرسل إلى {{email}}",
|
|
148
|
+
"change_email": "تغيير العنوان"
|
|
132
149
|
},
|
|
133
150
|
"signup": {
|
|
134
151
|
"success_title": "تحقق من بريدك الإلكتروني",
|
|
@@ -186,7 +203,7 @@
|
|
|
186
203
|
},
|
|
187
204
|
"actions": {
|
|
188
205
|
"sign_in_submit": "تسجيل الدخول",
|
|
189
|
-
"sign_up_submit": "إنشاء
|
|
206
|
+
"sign_up_submit": "إنشاء حسابي"
|
|
190
207
|
},
|
|
191
208
|
"guard": {
|
|
192
209
|
"signInRequired": "تسجيل الدخول مطلوب",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"signingIn": "Logger ind...",
|
|
36
36
|
"creatingAccount": "Opretter konto...",
|
|
37
37
|
"email": "E-mail",
|
|
38
|
+
"name": "Navn",
|
|
38
39
|
"password": "Adgangskode",
|
|
39
40
|
"emailHint": "Indtast din e-mailadresse",
|
|
40
41
|
"passwordHintSignin": "Indtast din adgangskode",
|
|
@@ -115,6 +116,10 @@
|
|
|
115
116
|
"passwordStrength.fair": "Tilpas",
|
|
116
117
|
"passwordStrength.good": "God",
|
|
117
118
|
"passwordStrength.strong": "Stærk",
|
|
119
|
+
"passwordToggle": {
|
|
120
|
+
"show": "Vis adgangskode",
|
|
121
|
+
"hide": "Skjul adgangskode"
|
|
122
|
+
},
|
|
118
123
|
"rememberMe": "Husk mig",
|
|
119
124
|
"signUp": "Opret konto",
|
|
120
125
|
"alreadyHaveAccount": "Har du allerede en konto? Log ind",
|
|
@@ -128,7 +133,19 @@
|
|
|
128
133
|
"email_not_confirmed": "Bekræft venligst din e-mail, før du logger ind.",
|
|
129
134
|
"invalid_credentials": "Ugyldig e-mail eller adgangskode.",
|
|
130
135
|
"weak_password": "Adgangskoden er for svag. Vælg venligst en stærkere adgangskode.",
|
|
131
|
-
"breached_password": "Denne adgangskode er fundet i et datalæk. Vælg venligst en anden adgangskode."
|
|
136
|
+
"breached_password": "Denne adgangskode er fundet i et datalæk. Vælg venligst en anden adgangskode.",
|
|
137
|
+
"invalid_code": "Koden er forkert eller udløbet. Tjek e-mailen eller bed om en ny kode.",
|
|
138
|
+
"code_expired": "Koden er udløbet. Bed om en ny kode."
|
|
139
|
+
},
|
|
140
|
+
"codeConfirmation": {
|
|
141
|
+
"label": "Bekræftelseskode",
|
|
142
|
+
"digit": "Ciffer {{index}} af {{length}}",
|
|
143
|
+
"incomplete": "Indtast den {{length}}-cifrede kode.",
|
|
144
|
+
"resend": "Send koden igen",
|
|
145
|
+
"resend_in": "Send koden igen om {{seconds}} s",
|
|
146
|
+
"sent": "En ny kode er sendt.",
|
|
147
|
+
"intro": "Indtast koden sendt til {{email}}",
|
|
148
|
+
"change_email": "Skift adresse"
|
|
132
149
|
},
|
|
133
150
|
"signup": {
|
|
134
151
|
"success_title": "Tjek din e-mail",
|
|
@@ -184,7 +201,10 @@
|
|
|
184
201
|
"signingIn": "Logger ind med {{partner}}...",
|
|
185
202
|
"signedIn": "Logget ind med {{partner}}"
|
|
186
203
|
},
|
|
187
|
-
"actions": {
|
|
204
|
+
"actions": {
|
|
205
|
+
"sign_in_submit": "Log ind",
|
|
206
|
+
"sign_up_submit": "Opret konto"
|
|
207
|
+
},
|
|
188
208
|
"guard": {
|
|
189
209
|
"signInRequired": "Login påkrævet",
|
|
190
210
|
"signInDescription": "Log ind for at få adgang til denne side"
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"signingIn": "Anmeldung...",
|
|
36
36
|
"creatingAccount": "Konto wird erstellt...",
|
|
37
37
|
"email": "E-Mail",
|
|
38
|
+
"name": "Name",
|
|
38
39
|
"password": "Passwort",
|
|
39
40
|
"emailHint": "Geben Sie Ihre E-Mail-Adresse ein",
|
|
40
41
|
"passwordHintSignin": "Geben Sie Ihr Passwort ein",
|
|
@@ -115,6 +116,10 @@
|
|
|
115
116
|
"passwordStrength.fair": "Mäßig",
|
|
116
117
|
"passwordStrength.good": "Gut",
|
|
117
118
|
"passwordStrength.strong": "Stark",
|
|
119
|
+
"passwordToggle": {
|
|
120
|
+
"show": "Passwort anzeigen",
|
|
121
|
+
"hide": "Passwort verbergen"
|
|
122
|
+
},
|
|
118
123
|
"rememberMe": "Angemeldet bleiben",
|
|
119
124
|
"signUp": "Registrieren",
|
|
120
125
|
"alreadyHaveAccount": "Haben Sie bereits ein Konto? Anmelden",
|
|
@@ -128,7 +133,19 @@
|
|
|
128
133
|
"email_not_confirmed": "Bitte bestätigen Sie Ihre E-Mail-Adresse, bevor Sie sich anmelden.",
|
|
129
134
|
"invalid_credentials": "Ungültige E-Mail-Adresse oder Passwort.",
|
|
130
135
|
"weak_password": "Das Passwort ist zu schwach. Bitte wählen Sie ein stärkeres Passwort.",
|
|
131
|
-
"breached_password": "Dieses Passwort wurde in einem Datenleck gefunden. Bitte wählen Sie ein anderes Passwort."
|
|
136
|
+
"breached_password": "Dieses Passwort wurde in einem Datenleck gefunden. Bitte wählen Sie ein anderes Passwort.",
|
|
137
|
+
"invalid_code": "Dieser Code ist falsch oder abgelaufen. Prüfen Sie die E-Mail oder fordern Sie einen neuen Code an.",
|
|
138
|
+
"code_expired": "Dieser Code ist abgelaufen. Fordern Sie einen neuen Code an."
|
|
139
|
+
},
|
|
140
|
+
"codeConfirmation": {
|
|
141
|
+
"label": "Bestätigungscode",
|
|
142
|
+
"digit": "Ziffer {{index}} von {{length}}",
|
|
143
|
+
"incomplete": "Geben Sie den {{length}}-stelligen Code ein.",
|
|
144
|
+
"resend": "Code erneut senden",
|
|
145
|
+
"resend_in": "Code erneut senden in {{seconds}} s",
|
|
146
|
+
"sent": "Ein neuer Code wurde gesendet.",
|
|
147
|
+
"intro": "Gib den an {{email}} gesendeten Code ein",
|
|
148
|
+
"change_email": "Adresse ändern"
|
|
132
149
|
},
|
|
133
150
|
"signup": {
|
|
134
151
|
"success_title": "Überprüfen Sie Ihre E-Mail",
|
|
@@ -186,7 +203,7 @@
|
|
|
186
203
|
},
|
|
187
204
|
"actions": {
|
|
188
205
|
"sign_in_submit": "Anmelden",
|
|
189
|
-
"sign_up_submit": "
|
|
206
|
+
"sign_up_submit": "Konto erstellen"
|
|
190
207
|
},
|
|
191
208
|
"guard": {
|
|
192
209
|
"signInRequired": "Anmeldung erforderlich",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"signingIn": "Signing in...",
|
|
36
36
|
"creatingAccount": "Creating account...",
|
|
37
37
|
"email": "Email",
|
|
38
|
+
"name": "Name",
|
|
38
39
|
"password": "Password",
|
|
39
40
|
"emailHint": "Enter your email address",
|
|
40
41
|
"passwordHintSignin": "Enter your password",
|
|
@@ -115,6 +116,10 @@
|
|
|
115
116
|
"passwordStrength.fair": "Fair",
|
|
116
117
|
"passwordStrength.good": "Good",
|
|
117
118
|
"passwordStrength.strong": "Strong",
|
|
119
|
+
"passwordToggle": {
|
|
120
|
+
"show": "Show password",
|
|
121
|
+
"hide": "Hide password"
|
|
122
|
+
},
|
|
118
123
|
"rememberMe": "Remember me",
|
|
119
124
|
"signUp": "Sign Up",
|
|
120
125
|
"alreadyHaveAccount": "Already have an account? Sign In",
|
|
@@ -128,7 +133,19 @@
|
|
|
128
133
|
"email_not_confirmed": "Please verify your email before signing in.",
|
|
129
134
|
"invalid_credentials": "Invalid email or password.",
|
|
130
135
|
"weak_password": "Password is too weak. Please choose a stronger password.",
|
|
131
|
-
"breached_password": "This password has appeared in a data breach. Please choose a different password."
|
|
136
|
+
"breached_password": "This password has appeared in a data breach. Please choose a different password.",
|
|
137
|
+
"invalid_code": "This code is incorrect or has expired. Check the email or request a new code.",
|
|
138
|
+
"code_expired": "This code has expired. Request a new code."
|
|
139
|
+
},
|
|
140
|
+
"codeConfirmation": {
|
|
141
|
+
"label": "Confirmation code",
|
|
142
|
+
"digit": "Digit {{index}} of {{length}}",
|
|
143
|
+
"incomplete": "Enter the {{length}}-digit code.",
|
|
144
|
+
"resend": "Resend code",
|
|
145
|
+
"resend_in": "Resend code in {{seconds}} s",
|
|
146
|
+
"sent": "A new code has been sent.",
|
|
147
|
+
"intro": "Enter the code sent to {{email}}",
|
|
148
|
+
"change_email": "Change address"
|
|
132
149
|
},
|
|
133
150
|
"signup": {
|
|
134
151
|
"success_title": "Check your email",
|
|
@@ -186,7 +203,7 @@
|
|
|
186
203
|
},
|
|
187
204
|
"actions": {
|
|
188
205
|
"sign_in_submit": "Sign In",
|
|
189
|
-
"sign_up_submit": "
|
|
206
|
+
"sign_up_submit": "Create account"
|
|
190
207
|
},
|
|
191
208
|
"guard": {
|
|
192
209
|
"signInRequired": "Sign in required",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"signingIn": "Iniciando sesión...",
|
|
36
36
|
"creatingAccount": "Creando cuenta...",
|
|
37
37
|
"email": "Correo electrónico",
|
|
38
|
+
"name": "Nombre",
|
|
38
39
|
"password": "Contraseña",
|
|
39
40
|
"emailHint": "Ingrese su dirección de correo electrónico",
|
|
40
41
|
"passwordHintSignin": "Ingrese su contraseña",
|
|
@@ -115,6 +116,10 @@
|
|
|
115
116
|
"passwordStrength.fair": "Regular",
|
|
116
117
|
"passwordStrength.good": "Buena",
|
|
117
118
|
"passwordStrength.strong": "Fuerte",
|
|
119
|
+
"passwordToggle": {
|
|
120
|
+
"show": "Mostrar contraseña",
|
|
121
|
+
"hide": "Ocultar contraseña"
|
|
122
|
+
},
|
|
118
123
|
"rememberMe": "Recordarme",
|
|
119
124
|
"signUp": "Registrarse",
|
|
120
125
|
"alreadyHaveAccount": "¿Ya tiene una cuenta? Iniciar sesión",
|
|
@@ -128,7 +133,19 @@
|
|
|
128
133
|
"email_not_confirmed": "Por favor verifique su correo electrónico antes de iniciar sesión.",
|
|
129
134
|
"invalid_credentials": "Correo electrónico o contraseña inválidos.",
|
|
130
135
|
"weak_password": "La contraseña es demasiado débil. Por favor elija una contraseña más segura.",
|
|
131
|
-
"breached_password": "Esta contraseña ha aparecido en una filtración de datos. Por favor elija una contraseña diferente."
|
|
136
|
+
"breached_password": "Esta contraseña ha aparecido en una filtración de datos. Por favor elija una contraseña diferente.",
|
|
137
|
+
"invalid_code": "Este código es incorrecto o ha caducado. Revise el correo o solicite un código nuevo.",
|
|
138
|
+
"code_expired": "Este código ha caducado. Solicite un código nuevo."
|
|
139
|
+
},
|
|
140
|
+
"codeConfirmation": {
|
|
141
|
+
"label": "Código de confirmación",
|
|
142
|
+
"digit": "Dígito {{index}} de {{length}}",
|
|
143
|
+
"incomplete": "Introduzca el código de {{length}} dígitos.",
|
|
144
|
+
"resend": "Reenviar código",
|
|
145
|
+
"resend_in": "Reenviar código en {{seconds}} s",
|
|
146
|
+
"sent": "Se ha enviado un nuevo código.",
|
|
147
|
+
"intro": "Introduce el código enviado a {{email}}",
|
|
148
|
+
"change_email": "Cambiar dirección"
|
|
132
149
|
},
|
|
133
150
|
"signup": {
|
|
134
151
|
"success_title": "Revise su correo electrónico",
|
|
@@ -186,7 +203,7 @@
|
|
|
186
203
|
},
|
|
187
204
|
"actions": {
|
|
188
205
|
"sign_in_submit": "Iniciar sesión",
|
|
189
|
-
"sign_up_submit": "
|
|
206
|
+
"sign_up_submit": "Crear mi cuenta"
|
|
190
207
|
},
|
|
191
208
|
"guard": {
|
|
192
209
|
"signInRequired": "Inicio de sesión requerido",
|