Skip to content

Commit a3dd0fa

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip
1 parent 3f5e1e0 commit a3dd0fa

File tree

16 files changed

+65
-399
lines changed

16 files changed

+65
-399
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_NAME=Stacks
22
APP_ENV=development
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_URL=stacks.test
5+
APP_URL=stacksjs.com
66
APP_SUBDOMAIN_API=api
77
APP_SUBDOMAIN_DOCS=docs
88
APP_SUBDOMAIN_LIBRARY=lib

.stacks/Caddyfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
docs.stacksjs.localhost {
2+
reverse_proxy docs.stacksjs.test:3333
3+
}
4+
5+
api.stacksjs.localhost {
6+
reverse_proxy api.stacksjs.test:3333
7+
}
8+
9+
lib.stacksjs.localhost {
10+
reverse_proxy lib.stacksjs.test:3333
11+
}

.stacks/buddy

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
#!/bin/sh
2-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3-
4-
case $(uname) in
5-
*CYGWIN*) basedir=$(cygpath -w "$basedir") ;;
6-
esac
7-
8-
exec bun "$basedir/core/buddy/src/cli.ts" "$@"
1+
#!/usr/bin/env bun
2+
import('./core/buddy/src/cli')

.stacks/core/docs/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vitepress'
22
import { path as p } from '@stacksjs/path'
3-
import { app, docs } from '@stacksjs/config'
3+
import { docs } from '@stacksjs/config'
44
import { docsEngine } from '../../vite/src/plugin/docs'
55

66
const defaultConfig = {
@@ -9,7 +9,7 @@ const defaultConfig = {
99
envDir: p.projectPath(),
1010
envPrefix: 'FRONTEND_',
1111
server: {
12-
host,
12+
host: 'docs.stacks.test',
1313
port: 3333,
1414
open: true,
1515
},

.stacks/core/types/src/model.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export interface TimestampOptions {
1313
deletedAt?: string
1414
}
1515

16+
export interface SoftDeleteOptions {
17+
deletedAt?: string // defaults to 'deleted_at' & can be used for localized tables
18+
}
19+
1620
interface Base {}
1721

1822
/**
@@ -41,7 +45,14 @@ export interface ModelOptions extends Base {
4145
useSearch: boolean | SearchEngineSettings
4246
useSearchEngine: boolean | SearchEngineSettings
4347
useTimestamps: boolean | TimestampOptions
44-
// useSoftDeletes: boolean | SoftDeleteOptions
48+
useSoftDeletes: boolean | SoftDeleteOptions
49+
50+
attributes: {
51+
[key: string]: {
52+
get: (value: any) => any
53+
set: (value: any) => any
54+
}
55+
}
4556
}
4657

4758
export interface Fields {

.stacks/ide/dictionary.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ browserslist
2222
bumpp
2323
bundleconfig
2424
bunx
25+
caddyserver
2526
cardano
2627
cback
2728
certificatemanager
@@ -188,6 +189,7 @@ safelist
188189
sasl
189190
scanlon
190191
scrollback
192+
seedable
191193
sendemail
192194
sendgrid
193195
sfc

.stacks/scripts/install-bun.sh

Lines changed: 0 additions & 304 deletions
This file was deleted.

0 commit comments

Comments
 (0)