create-reactivite 1.1.0 → 1.3.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.
Files changed (67) hide show
  1. package/README.md +235 -197
  2. package/index.js +48 -1
  3. package/package.json +7 -4
  4. package/template/_gitignore +24 -0
  5. package/template/src/App.tsx +7 -2
  6. package/template/src/components/author-credit.tsx +25 -0
  7. package/template2/.env.example +8 -0
  8. package/template2/.husky/pre-commit +4 -0
  9. package/template2/.prettierrc +5 -0
  10. package/template2/README.md +73 -0
  11. package/template2/__tests__/example.test.ts +20 -0
  12. package/template2/_gitignore +37 -0
  13. package/template2/app/[locale]/(private)/dashboard/page.tsx +52 -0
  14. package/template2/app/[locale]/(public)/login/page.tsx +83 -0
  15. package/template2/app/[locale]/layout.tsx +58 -0
  16. package/template2/app/[locale]/locales.ts +10 -0
  17. package/template2/app/[locale]/page.tsx +38 -0
  18. package/template2/app/api/clear-session/route.ts +10 -0
  19. package/template2/app/globals.css +127 -0
  20. package/template2/app/layout.tsx +7 -0
  21. package/template2/app/page.tsx +6 -0
  22. package/template2/components/AuthEventListener.tsx +22 -0
  23. package/template2/components/author-credit.tsx +25 -0
  24. package/template2/components/theme-provider.tsx +78 -0
  25. package/template2/components/ui/button.tsx +60 -0
  26. package/template2/components/ui/card.tsx +92 -0
  27. package/template2/components/ui/input.tsx +21 -0
  28. package/template2/components/ui/label.tsx +24 -0
  29. package/template2/components/ui/sonner.tsx +40 -0
  30. package/template2/components.json +22 -0
  31. package/template2/config/constants.ts +7 -0
  32. package/template2/config/env.ts +5 -0
  33. package/template2/contexts/translation-context.tsx +70 -0
  34. package/template2/eslint.config.mjs +18 -0
  35. package/template2/hoc/provider.tsx +27 -0
  36. package/template2/lib/paramsSerializer.ts +40 -0
  37. package/template2/lib/utils.ts +6 -0
  38. package/template2/locales/az.json +20 -0
  39. package/template2/locales/en.json +20 -0
  40. package/template2/next-env.d.ts +6 -0
  41. package/template2/next.config.ts +17 -0
  42. package/template2/orval.config.ts +66 -0
  43. package/template2/package.json +62 -0
  44. package/template2/postcss.config.mjs +7 -0
  45. package/template2/public/.gitkeep +0 -0
  46. package/template2/scripts/fix-generated-types.mjs +13 -0
  47. package/template2/services/generated/.gitkeep +2 -0
  48. package/template2/services/httpClient/httpClient.ts +70 -0
  49. package/template2/services/httpClient/orvalMutator.ts +10 -0
  50. package/template2/store/example-store.tsx +16 -0
  51. package/template2/store/user-store.tsx +29 -0
  52. package/template2/testing/msw/handlers/index.ts +6 -0
  53. package/template2/testing/msw/server.ts +4 -0
  54. package/template2/tsconfig.json +34 -0
  55. package/template2/tsconfig.tsbuildinfo +1 -0
  56. package/template2/vitest.config.ts +17 -0
  57. package/template2/vitest.setup.ts +7 -0
  58. package/template3/README.md +34 -0
  59. package/template3/_gitignore +16 -0
  60. package/template3/index.html +11 -0
  61. package/template3/package.json +22 -0
  62. package/template3/rspack.config.mjs +51 -0
  63. package/template3/src/App.tsx +16 -0
  64. package/template3/src/components/author-credit.tsx +42 -0
  65. package/template3/src/index.css +46 -0
  66. package/template3/src/main.tsx +10 -0
  67. package/template3/tsconfig.json +20 -0
@@ -0,0 +1,42 @@
1
+ const links = [
2
+ { label: 'GitHub', href: 'https://github.com/javidselimov' },
3
+ { label: 'LinkedIn', href: 'https://www.linkedin.com/in/javidsalim/' },
4
+ { label: 'npm', href: 'https://www.npmjs.com/~ubuligan' },
5
+ ];
6
+
7
+ export function AuthorCredit() {
8
+ return (
9
+ <div
10
+ style={{
11
+ position: 'fixed',
12
+ bottom: 16,
13
+ right: 16,
14
+ zIndex: 50,
15
+ display: 'flex',
16
+ alignItems: 'center',
17
+ gap: 12,
18
+ padding: '8px 16px',
19
+ borderRadius: 9999,
20
+ border: '1px solid #2a2f3a',
21
+ background: 'rgba(13, 16, 22, 0.8)',
22
+ backdropFilter: 'blur(8px)',
23
+ fontSize: 13,
24
+ color: '#e7eaf0',
25
+ }}
26
+ >
27
+ <strong>Javid Salimov</strong>
28
+ <span style={{ color: '#3a3f4a' }}>·</span>
29
+ {links.map((l) => (
30
+ <a
31
+ key={l.label}
32
+ href={l.href}
33
+ target="_blank"
34
+ rel="noreferrer"
35
+ style={{ color: '#8b93a7', textDecoration: 'none' }}
36
+ >
37
+ {l.label}
38
+ </a>
39
+ ))}
40
+ </div>
41
+ );
42
+ }
@@ -0,0 +1,46 @@
1
+ :root {
2
+ --bg: #0b0d12;
3
+ --fg: #e7eaf0;
4
+ --muted: #8b93a7;
5
+ --accent: #6aa9ff;
6
+ font-family: system-ui, -apple-system, sans-serif;
7
+ }
8
+
9
+ * {
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ body {
14
+ margin: 0;
15
+ min-height: 100vh;
16
+ background: radial-gradient(circle at 30% 20%, #161a23, var(--bg));
17
+ color: var(--fg);
18
+ }
19
+
20
+ .app {
21
+ min-height: 100vh;
22
+ display: grid;
23
+ place-items: center;
24
+ text-align: center;
25
+ padding: 24px;
26
+ }
27
+
28
+ .app h1 {
29
+ font-size: 2.5rem;
30
+ margin: 0 0 0.5rem;
31
+ }
32
+
33
+ .app p {
34
+ color: var(--muted);
35
+ margin: 0;
36
+ }
37
+
38
+ .badge {
39
+ display: inline-block;
40
+ margin-bottom: 1rem;
41
+ padding: 4px 12px;
42
+ border: 1px solid #2a2f3a;
43
+ border-radius: 9999px;
44
+ font-size: 0.8rem;
45
+ color: var(--accent);
46
+ }
@@ -0,0 +1,10 @@
1
+ import { StrictMode } from 'react';
2
+ import { createRoot } from 'react-dom/client';
3
+ import App from './App';
4
+ import './index.css';
5
+
6
+ createRoot(document.getElementById('root')!).render(
7
+ <StrictMode>
8
+ <App />
9
+ </StrictMode>,
10
+ );
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+ "moduleResolution": "bundler",
9
+ "allowImportingTsExtensions": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "noEmit": true,
13
+ "jsx": "react-jsx",
14
+ "strict": true,
15
+ "noUnusedLocals": true,
16
+ "noUnusedParameters": true,
17
+ "noFallthroughCasesInSwitch": true
18
+ },
19
+ "include": ["src"]
20
+ }