Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit fda4ab0

Browse files
authored
Merge pull request #123 from slashbaseide/develop
Release 0.9.1
2 parents a2b9a33 + 54fef46 commit fda4ab0

73 files changed

Lines changed: 1916 additions & 1556 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@ app.db
3131
# Wails
3232
build/bin
3333
node_modules
34-
frontend/desktop/dist
35-
build/darwin/gon-notarize.json
36-
37-
# Frontend Server
38-
frontend/server/dist
34+
frontend/dist
35+
build/darwin/gon-notarize.json

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@ app.db
3131
# Wails
3232
build/bin
3333
node_modules
34-
frontend/desktop/dist
35-
build/darwin/gon-notarize.json
36-
37-
# Frontend Server
38-
frontend/server/dist
34+
frontend/dist
35+
build/darwin/gon-notarize.json

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ RUN apk update && apk add --no-cache ca-certificates git build-base && update-ca
1515
COPY go.mod go.sum ./
1616
RUN go mod download
1717

18-
# Executable builder
19-
FROM base as backendbuilder
20-
21-
WORKDIR /app
22-
COPY . .
23-
RUN mkdir -p /app/frontend/desktop/dist
24-
RUN touch /app/frontend/desktop/dist/nofile
25-
RUN make build-server
26-
2718
# Install dependencies only when needed
2819
FROM node:alpine AS deps
2920

@@ -40,12 +31,19 @@ COPY ./frontend/server/ .
4031
COPY --from=deps /app/node_modules ./node_modules
4132
RUN yarn build
4233

34+
# Executable builder
35+
FROM base as backendbuilder
36+
37+
WORKDIR /app
38+
COPY . .
39+
COPY --from=frontendbuilder /dist /app/frontend/dist
40+
RUN make build-server
41+
4342
# Production
4443
FROM alpine:3.14
4544

4645
WORKDIR /slashbase
4746
COPY --from=backendbuilder /app/slashbase /slashbase
48-
COPY --from=frontendbuilder /app/dist /slashbase/web
4947

5048
ENTRYPOINT ["/slashbase/slashbase"]
5149
EXPOSE 3000

development.env.sample

100755100644
File mode changed.

frontend/desktop/src/components/cards/dbconncard/newdbconnectionbutton.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react'
22
import { Project } from '../../../data/models'
33
import Constants from '../../../constants'
44
import { Link } from 'react-router-dom'
5+
import Button from '../../ui/Button'
56

67
type NewDBConnButtonPropType = {
78
project: Project
@@ -12,11 +13,7 @@ const NewDBConnButton = ({ project }: NewDBConnButtonPropType) => {
1213
return (
1314
<Link to={Constants.APP_PATHS.NEW_DB.path.replace('[id]', project.id)}>
1415
<a>
15-
<button className="button" >
16-
<i className={"fas fa-plus-circle"} />
17-
&nbsp;&nbsp;
18-
Add New DB Connection
19-
</button>
16+
<Button text="Add New DB Connection" icon={<i className={"fas fa-plus-circle"} />} />
2017
</a>
2118
</Link>
2219
)

frontend/desktop/src/components/cards/dbdatamodelcard/dbdatamodelcard.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { DBConnection, DBDataModel } from '../../../data/models'
33
import { DBConnType, TabType } from '../../../data/defaults'
44
import { useAppDispatch } from '../../../redux/hooks'
55
import { updateActiveTab } from '../../../redux/tabsSlice'
6+
import Button from '../../ui/Button'
67

78
type DBDataModelPropType = {
89
dbConnection: DBConnection
@@ -33,14 +34,18 @@ const DBDataModelCard = ({ dataModel, dbConnection }: DBDataModelPropType) => {
3334
<b>{dataModel.name}</b>}
3435
</div>
3536
<div className="buttons">
36-
<button className="button is-small is-white" onClick={updateActiveTabToData}>
37-
<span className="icon is-small"><i className="fas fa-table" /></span>
38-
<span>View Data</span>
39-
</button>
40-
<button className="button is-small is-white" onClick={updateActiveTabToModel}>
41-
<span className="icon is-small"><i className="fas fa-list-alt" /></span>
42-
<span>View Model</span>
43-
</button>
37+
<Button
38+
className="is-small is-white"
39+
icon={<i className="fas fa-table"/>}
40+
onClick={updateActiveTabToData}
41+
text='View Data'
42+
/>
43+
<Button
44+
className="is-small is-white"
45+
icon={<i className="fas fa-list-alt"/>}
46+
onClick={updateActiveTabToModel}
47+
text='View Model'
48+
/>
4449
</div>
4550
</div>
4651
</div>

frontend/desktop/src/components/dbfragments/chart/chart.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
ArcElement,
1414
Tooltip
1515
} from 'chart.js'
16+
import Button from '../../ui/Button'
1617

1718
ChartJS.register(
1819
CategoryScale,
@@ -135,7 +136,7 @@ const Chart = ({ dbConn, queryData }: ChartPropType) => {
135136
</div>
136137
<br />
137138
<div className="control">
138-
<button className="button is-primary" onClick={createChart}>Create</button>
139+
<Button className="is-primary" onClick={createChart} text='Create'/>
139140
</div>
140141

141142
</React.Fragment>

frontend/desktop/src/components/dbfragments/cheatsheet/cheatsheet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { DBConnType } from '../../../data/defaults'
33
import CheatsheetCommand from './command'
44
import _ from 'lodash'
55
import lunr from 'lunr'
6+
import Button from '../../ui/Button'
67

78
type CheatSheetPropType = {
89
dbType: DBConnType
@@ -69,7 +70,7 @@ const CheatSheetModal = ({ dbType, onClose }: CheatSheetPropType) => {
6970
</>}
7071
</section>
7172
<footer className="modal-card-foot">
72-
<button className="button" onClick={onClose}>Close</button>
73+
<Button onClick={onClose} text='Close'/>
7374
</footer>
7475
</div>
7576
</div>

frontend/desktop/src/components/dbfragments/datamodel/addfieldmodal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import toast from 'react-hot-toast'
44
import { useAppDispatch, useAppSelector } from '../../../redux/hooks'
55
import { addDBDataModelField } from '../../../redux/dataModelSlice'
66
import TabContext from '../../layouts/tabcontext'
7+
import Button from '../../ui/Button'
78

89
type AddModal = {
910
dbConn: DBConnection
@@ -64,8 +65,8 @@ const AddFieldModal = ({ dbConn, mSchema, mName, onAddField, onClose }: AddModal
6465
</div>
6566
</section>
6667
<footer className="modal-card-foot">
67-
<button className="button is-primary" onClick={startAdding}>Add</button>
68-
<button className="button" onClick={onClose}>Cancel</button>
68+
<Button className="is-primary" text='Add' onClick={startAdding}/>
69+
<Button text='Cancel' onClick={onClose}/>
6970
</footer>
7071
</div>
7172
</div>

frontend/desktop/src/components/dbfragments/datamodel/addindexmodal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import toast from 'react-hot-toast'
44
import { addDBDataModelIndex } from '../../../redux/dataModelSlice'
55
import { useAppDispatch, useAppSelector } from '../../../redux/hooks'
66
import TabContext from '../../layouts/tabcontext'
7+
import Button from '../../ui/Button'
78

89
type AddIndexModal = {
910
dbConn: DBConnection
@@ -74,8 +75,8 @@ const AddIndexModal = ({ dbConn, mSchema, mName, onAddIndex, onClose }: AddIndex
7475
</div>
7576
</section>
7677
<footer className="modal-card-foot">
77-
<button className="button is-primary" onClick={startAdding}>Add</button>
78-
<button className="button" onClick={onClose}>Cancel</button>
78+
<Button className="is-primary" text='Add' onClick={startAdding}/>
79+
<Button text='Cancel' onClick={onClose}/>
7980
</footer>
8081
</div>
8182
</div>

0 commit comments

Comments
 (0)