Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
botway(core & other): add ai pages, update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Jul 3, 2023
1 parent 412e358 commit 99ac4dc
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ indent_size = 4

[*.{json,md}]
indent_style = space
indent_size = 2
indent_size = 2
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
zshrc text eol=lf
*.sh text eol=lf
*.sh text eol=lf
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
path = packages/botwaycr
url = https://github.com/abdfnx/botwaycr
branch = main
[submodule "packages/botway-lua"]
path = packages/botway-lua
url = https://github.com/abdfnx/botway-lua
branch = main
[submodule "create-botway-bot"]
path = create-botway-bot
url = https://github.com/abdfnx/create-botway-bot
Expand Down
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ image:

tasks:
- name: Setup Botway
init: gomo
command: gomo update
init: go mod download
command: go get -u

- name: Setup Botway UI
init: pnpm i
Expand Down
6 changes: 0 additions & 6 deletions .golangci.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
auto-install-peers=true
strict-peer-dependencies=false
strict-peer-dependencies=false
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/*
.next
core/.next
LICENSE
2 changes: 0 additions & 2 deletions constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
)

var (
// Styles
PRIMARY_COLOR_HEX = "#1d4ed8"
PRIMARY_COLOR = lipgloss.Color(PRIMARY_COLOR_HEX)
CYAN_COLOR = lipgloss.Color("#00FFFF")
Expand Down Expand Up @@ -52,7 +51,6 @@ var (
WARN_FOREGROUND = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(YELLOW_COLOR))
HEADING = lipgloss.NewStyle().Foreground(lipgloss.Color(PRIMARY_COLOR)).SetString("==> ").String()

// File Paths
HomeDir, _ = dfs.GetHomeDirectory()
BotwayDirPath = filepath.Join(HomeDir, ".botway")
BotwayConfigFile = filepath.Join(BotwayDirPath, "botway.json")
Expand Down
25 changes: 25 additions & 0 deletions core/app/ai/new/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import { redirect } from "next/navigation";
import { useAuth } from "@/supabase/auth/provider";
import { LoadingDots } from "@/components/LoadingDots";

export const revalidate = 0;

const NewProjectAI = () => {
const { initial, user } = useAuth();

if (initial) {
return (
<LoadingDots className="fixed inset-0 flex items-center justify-center" />
);
}

if (user) {
return <></>;
}

redirect("/");
};

export default NewProjectAI;
25 changes: 25 additions & 0 deletions core/app/ai/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import { redirect } from "next/navigation";
import { useAuth } from "@/supabase/auth/provider";
import { LoadingDots } from "@/components/LoadingDots";

export const revalidate = 0;

const AI = () => {
const { initial, user } = useAuth();

if (initial) {
return (
<LoadingDots className="fixed inset-0 flex items-center justify-center" />
);
}

if (user) {
return <></>;
}

redirect("/");
};

export default AI;
7 changes: 0 additions & 7 deletions gomo.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/botway-lua
Submodule botway-lua deleted from 24ccd8
1 change: 1 addition & 0 deletions tools/check-dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func CheckDir() {
if _, err := os.Stat(".botway.yaml"); err != nil {
fmt.Print(constants.FAIL_BACKGROUND.Render("ERROR"))
fmt.Print(" ")

panic(constants.FAIL_FOREGROUND.Render("You need to run this command in your bot directory"))
}
}
Expand Down
3 changes: 0 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"outputs": ["dist/**"],
"cache": false
},
"lint": {
"outputs": []
},
"dev": {
"cache": true
},
Expand Down

0 comments on commit 99ac4dc

Please sign in to comment.