Skip to content

Commit

Permalink
feat(ai): scow ai (#1017)
Browse files Browse the repository at this point in the history
next+trpc+orm+openApi

---------

Co-authored-by: ZihanChen821 <827625357@qq.com>
Co-authored-by: Chen Junda <ddadaal@outlook.com>
Co-authored-by: OYX-1 <13121812323@163.com>
Co-authored-by: picca Sun <piccasun@gmail.com>
Co-authored-by: Miracle575 <longsijie@icode.pku.edu.cn>
Co-authored-by: Yixin Sun <43978285+piccaSun@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: ZihanChen821 <130351655+ZihanChen821@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
11 people authored Feb 1, 2024
1 parent 405ede6 commit 59ab141
Show file tree
Hide file tree
Showing 322 changed files with 26,135 additions and 215 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
**/next-env.d.ts

**/build

**/generated
14 changes: 13 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@
"--proto_path=./protos"
],
},
"buf.binaryPath": "node_modules/@bufbuild/buf/bin/buf"
"buf.binaryPath": "node_modules/@bufbuild/buf/bin/buf",
"cSpell.words": [
"trpc"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
}
15 changes: 15 additions & 0 deletions apps/ai/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# don't ever lint node_modules

**/node_modules
# don't lint build output (make sure it's set to your correct build folder name)
**/out

**/build/

**/migrations

**/server/migrations

**/next-env.d.ts

**/build
3 changes: 3 additions & 0 deletions apps/ai/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@ddadaal/eslint-config/react"
}
43 changes: 43 additions & 0 deletions apps/ai/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
/.turbo
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.vscode

public/novnc

.next.backup
6 changes: 6 additions & 0 deletions apps/ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ai服务

主要实现:
next + trpc + mikro-orm + openApi

支持trpc和http 两种调用
11 changes: 11 additions & 0 deletions apps/ai/assets/app/server_entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# $1: the length of password
function get_password {
local password=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c$1)
echo $password
}

export PORT=$1
export HOST=$2
export SVCPORT=$3
1 change: 1 addition & 0 deletions apps/ai/assets/app/vnc_entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//TODO
Binary file added apps/ai/assets/icons/192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/ai/assets/icons/512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/ai/assets/icons/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions apps/ai/assets/logo/banner.dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/ai/assets/logo/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/ai/assets/logo/logo.dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 59ab141

Please sign in to comment.