Skip to content

Commit

Permalink
Merge pull request #1281 from undb-xyz/release/v0.5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Jul 2, 2023
2 parents 334facb + 15057cd commit d1be169
Show file tree
Hide file tree
Showing 145 changed files with 2,705 additions and 1,683 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.4
version: 8.6.5

- name: Install dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.6.4
version: 8.6.5

- name: changelogen
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ RUN bash -c 'VERSION="20.2.0" \
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
&& nvm use $VERSION && nvm alias default $VERSION'

RUN npm install -g pnpm@8.6.4
RUN npm install -g pnpm@8.6.5

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
22 changes: 10 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.5.16

## v0.5.15

## v0.5.14
Expand All @@ -8,12 +10,11 @@

## v0.5.11


### 馃┕ Fixes

- Fix ui ([bcc8bdf](https://github.com/undb-xyz/undb/commit/bcc8bdf))
- Fix ui ([bcc8bdf](https://github.com/undb-xyz/undb/commit/bcc8bdf))

### 鉂わ笍 Contributors
### 鉂わ笍 Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

Expand All @@ -23,25 +24,23 @@

## v0.5.8


### 馃┕ Fixes

- Fix field menu dropdown ([e44f098](https://github.com/undb-xyz/undb/commit/e44f098))
- Fix field menu dropdown ([e44f098](https://github.com/undb-xyz/undb/commit/e44f098))

### 鉂わ笍 Contributors
### 鉂わ笍 Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

## v0.5.7

## v0.5.6


### 馃摉 Documentation

- Add contribution docs ([70322a2](https://github.com/undb-xyz/undb/commit/70322a2))
- Add contribution docs ([70322a2](https://github.com/undb-xyz/undb/commit/70322a2))

### 鉂わ笍 Contributors
### 鉂わ笍 Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

Expand All @@ -55,12 +54,11 @@

## v0.5.1


### 馃┕ Fixes

- Fix ci ([87abff4](https://github.com/undb-xyz/undb/commit/87abff4))
- Fix ci ([87abff4](https://github.com/undb-xyz/undb/commit/87abff4))

### 鉂わ笍 Contributors
### 鉂わ笍 Contributors

- Nichenqin ([@nichenqin](http://github.com/nichenqin))

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN tar -C /usr/local/bin -xzf /tmp/litestream.tar.gz
# installer
FROM node:20.2.0 AS installer

RUN npm install -g pnpm@8.6.4
RUN npm install -g pnpm@8.6.5

WORKDIR /undb

Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- :computer: Self hosted in seconds
- :pencil: Customizable
- 馃敡 Deploy with variant adapters
- 馃幃 Developer friendly. Provide openapi / webhooks / realtime subscriptions / sdk(soon) and more
- 馃幃 Developer friendly. Provide openapi / webhooks / realtime subscriptions / sdk(soon) / erd preview and more
- :sparkles: Multiple built-in field types and variants
- :city_sunset: Different types of views, including grid, kanban, tree, calendar and more

Expand All @@ -51,8 +51,14 @@

![Create table](./docs/create-new-view.gif)

#### generated open api

<img width="2488" alt="image" src="https://github.com/undb-xyz/undb/assets/22788984/b80099d9-afe6-4b54-b248-c13a64057c57">

#### erd

<img width="2532" alt="image" src="https://github.com/undb-xyz/undb/assets/22788984/c3f0fce6-ea78-4c3c-9180-285e7f17c345">

## Deploy

### Deploy with docker
Expand Down
36 changes: 18 additions & 18 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
"name": "@undb/backend",
"version": "0.0.0",
"dependencies": {
"@aws-sdk/client-s3": "^3.359.0",
"@aws-sdk/client-s3": "^3.363.0",
"@json2csv/plainjs": "^7.0.1",
"@liaoliaots/nestjs-redis-health": "^9.0.4",
"@mikro-orm/better-sqlite": "^5.7.12",
"@mikro-orm/core": "^5.7.12",
"@mikro-orm/migrations": "^5.7.12",
"@mikro-orm/nestjs": "^5.2.0",
"@nestjs/common": "^10.0.3",
"@nestjs/common": "^10.0.4",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.0.3",
"@nestjs/core": "^10.0.4",
"@nestjs/cqrs": "^10.0.1",
"@nestjs/jwt": "^10.1.0",
"@nestjs/mongoose": "^10.0.0",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^10.0.3",
"@nestjs/platform-express": "^10.0.4",
"@nestjs/schedule": "^3.0.1",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/terminus": "^10.0.1",
"@temporalio/activity": "^1.7.4",
"@temporalio/client": "^1.7.4",
"@temporalio/common": "^1.7.4",
"@temporalio/worker": "^1.7.4",
"@temporalio/workflow": "^1.7.4",
"@trpc/server": "^10.32.0",
"@temporalio/activity": "^1.8.0",
"@temporalio/client": "^1.8.0",
"@temporalio/common": "^1.8.0",
"@temporalio/worker": "^1.8.0",
"@temporalio/workflow": "^1.8.0",
"@trpc/server": "^10.33.0",
"@undb/cache": "^0.0.0",
"@undb/core": "^0.0.0",
"@undb/cqrs": "^0.0.0",
Expand Down Expand Up @@ -70,40 +70,40 @@
"xlsx": "^0.18.5"
},
"devDependencies": {
"@nestjs/cli": "^10.0.3",
"@nestjs/cli": "^10.1.0",
"@nestjs/schematics": "^10.0.1",
"@nestjs/testing": "^10.0.3",
"@nestjs/testing": "^10.0.4",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.66",
"@swc/core": "^1.3.67",
"@types/bcrypt": "^5.0.0",
"@types/compression": "^1.7.2",
"@types/cookie-parser": "^1.4.3",
"@types/cron": "^2.0.1",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/multer": "^1.4.7",
"@types/node": "^20.3.1",
"@types/node": "^20.3.3",
"@types/passport": "^1.0.12",
"@types/passport-jwt": "^3.0.8",
"@types/passport-local": "^1.0.35",
"@types/supertest": "^2.0.12",
"@types/uuid": "^9.0.2",
"@undb/eslint-config": "^0.0.0",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"esm": "^3.2.25",
"express": "^4.18.2",
"jest": "^29.5.0",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.5",
"openapi3-ts": "^4.1.2",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tsconfig": "^0.0.0",
"tsconfig-paths": "^4.2.0",
"type-fest": "^3.12.0",
"typescript": "^5.1.3"
"typescript": "^5.1.6"
},
"jest": {
"moduleFileExtensions": [
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/storage/adapters/s3-object-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class S3ObjectStorage implements IObjectStorage, OnModuleInit {

async get(name: string): Promise<{ data: Readable; metaData: any }> {
const bucket = this.config.s3.bucket
const output = await this.s3.send(new GetObjectCommand({ Bucket: bucket, Key: name }))
const output = (await this.s3.send(new GetObjectCommand({ Bucket: bucket, Key: name }))) as any
const data = output.Body as Readable
return { data, metaData: output.Metadata }
}
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"electron": "^25.2.0",
"electron-builder": "^24.4.0",
"electron-is-dev": "^2.0.0",
"typescript": "^5.1.3",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vite-plugin-electron": "^0.12.0",
"vite-plugin-electron-renderer": "^0.14.5",
Expand Down
26 changes: 16 additions & 10 deletions apps/frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
},
env: {
browser: true,
es2017: true,
node: true
}
};
node: true,
},
}
29 changes: 15 additions & 14 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.20.5",
"@sveltejs/kit": "^1.21.0",
"@tailwindcss/forms": "^0.5.3",
"@tanstack/svelte-query": "^4.29.17",
"@trpc/client": "^10.32.0",
"@trpc/server": "^10.32.0",
"@tanstack/svelte-query": "^4.29.19",
"@trpc/client": "^10.33.0",
"@trpc/server": "^10.33.0",
"@types/js-cookie": "^3.0.3",
"@types/lodash-es": "^4.17.7",
"@types/nprogress": "^0.2.0",
"@types/papaparse": "^5.3.7",
"@types/safe-flat": "^2.0.0",
"@types/sortablejs": "^1.15.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@undb/core": "^0.0.0",
"@undb/i18n": "^0.0.0",
"@undb/integrations": "^0.0.0",
Expand All @@ -45,14 +45,14 @@
"classnames": "^2.3.2",
"date-fns": "^2.30.0",
"delay": "^6.0.0",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-svelte": "^2.32.2",
"flowbite": "^1.6.6",
"flowbite-svelte": "^0.39.0",
"flowbite-svelte": "^0.39.1",
"htm": "^3.1.1",
"i18next": "^23.0.0",
"i18next-browser-languagedetector": "^7.0.2",
"i18next-browser-languagedetector": "^7.1.0",
"i18next-http-backend": "^2.2.1",
"js-cookie": "^3.0.5",
"keycode": "^2.2.1",
Expand All @@ -66,7 +66,7 @@
"prettier-plugin-svelte": "^2.10.1",
"safe-flat": "^2.0.2",
"sortablejs": "^1.15.0",
"svelte": "^4.0.0",
"svelte": "^4.0.1",
"svelte-chartjs": "^3.1.2",
"svelte-check": "^3.4.4",
"svelte-copy": "^1.4.1",
Expand All @@ -79,13 +79,14 @@
"svelte-preprocess": "^5.0.4",
"svelte-previous": "^2.1.3",
"svelte-tiny-virtual-list": "^2.0.5",
"sveltekit-superforms": "^0.8.7",
"sveltekit-superforms": "^1.1.2",
"svelvet": "^8.0.8",
"tailwindcss": "^3.3.2",
"trpc-svelte-query": "^1.0.1",
"ts-pattern": "^5.0.1",
"tslib": "^2.5.3",
"tslib": "^2.6.0",
"type-fest": "^3.12.0",
"typescript": "^5.1.3",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vitest": "^0.32.2",
"xlsx": "^0.18.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%sveltekit.head%
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.21.0/tabler-icons.min.css" />
</head>
<body data-sveltekit-preload-data="hover" class="h-full">
<body data-sveltekit-preload-data="hover" class="h-full dark:bg-gray-900">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
2 changes: 1 addition & 1 deletion apps/frontend/src/lib/calendar/CalendarIndex.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<svelte:component this={map[field.type]} {field} />
</div>
{:else}
<div class="flex items-center justify-center h-screen w-full bg-gray-100">
<div class="flex items-center justify-center h-screen w-full bg-gray-100 dark:bg-slate-800/80">
<Card class="flex-1">
<CalendarConfig />
</Card>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/lib/calendar/DateCalendarView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@
}
</script>

<div class="flex-1 overflow-y-auto p-4 h-full">
<div class="flex-1 overflow-y-auto p-4 dark:!text-gray-200 h-full">
<Calendar {plugins} {options} />
</div>
15 changes: 15 additions & 0 deletions apps/frontend/src/lib/calendar/DateRangeCalendarView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,19 @@
:global(.ec-popup) {
z-index: 10;
}
:global(.dark .ec-toolbar) {
color: #e5e7eb;
/* background-color: gray; */
}
:global(.dark .ec-today) {
color: #e5e7eb;
background-color: #2663eb;
border-color: #2663eb;
}
:global(.dark .ec-month) {
color: #e5e7eb;
}
</style>
2 changes: 1 addition & 1 deletion apps/frontend/src/lib/calendar/calendar-theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const theme = (theme: Record<string, string>) => {
return {
...theme,
today: theme.today + ' !bg-amber-50',
today: theme.today + ' !bg-amber-50 dark:!bg-blue-50',
event: theme.event + ' !bg-sky-500/90 hover:!bg-sky-600/80 hover:transition-all duration-75',
}
}
Loading

0 comments on commit d1be169

Please sign in to comment.