Compare commits
2 Commits
c4113f63a4
...
v0.7.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
5d08b1c927
|
|||
|
148b8ff49d
|
@@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- alpha
|
- alpha
|
||||||
|
- devel
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -17,7 +18,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: "20.x"
|
||||||
- name: Install yarn
|
- name: Install yarn
|
||||||
run: npm install --global yarn
|
run: npm install --global yarn
|
||||||
- name: Install yarn dependencies
|
- name: Install yarn dependencies
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"main",
|
"main",
|
||||||
"next",
|
"next",
|
||||||
{ "name": "beta", "prerelease": true },
|
{ "name": "beta", "prerelease": true },
|
||||||
|
{ "name": "devel", "prerelease": true },
|
||||||
{ "name": "alpha", "prerelease": true }
|
{ "name": "alpha", "prerelease": true }
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ if (API_ENDPOINT && API_PROJECT) {
|
|||||||
client.setEndpoint(API_ENDPOINT).setProject(API_PROJECT);
|
client.setEndpoint(API_ENDPOINT).setProject(API_PROJECT);
|
||||||
} else {
|
} else {
|
||||||
console.error(
|
console.error(
|
||||||
'Must configure VITE_APPWRITE_API_ENDPOINT and VITE_APPWRITE_API_PROJECT'
|
'Must configure VITE_APPWRITE_API_ENDPOINT and VITE_APPWRITE_API_PROJECT',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,42 +44,21 @@ type AppwriteIDConfig = {
|
|||||||
let AppwriteIds = <AppwriteIDConfig>{};
|
let AppwriteIds = <AppwriteIDConfig>{};
|
||||||
|
|
||||||
console.log(API_ENDPOINT);
|
console.log(API_ENDPOINT);
|
||||||
if (
|
AppwriteIds = {
|
||||||
API_ENDPOINT === 'https://apidev.bab.toal.ca/v1' ||
|
databaseId: 'bab_prod',
|
||||||
API_ENDPOINT === 'http://localhost:4000/api/v1'
|
collection: {
|
||||||
) {
|
boat: 'boat',
|
||||||
AppwriteIds = {
|
reservation: 'reservation',
|
||||||
databaseId: '65ee1cbf9c2493faf15f',
|
skillTags: 'skillTags',
|
||||||
collection: {
|
task: 'task',
|
||||||
boat: 'boat',
|
taskTags: 'taskTags',
|
||||||
reservation: 'reservation',
|
interval: 'interval',
|
||||||
skillTags: 'skillTags',
|
intervalTemplate: 'intervalTemplate',
|
||||||
task: 'task',
|
},
|
||||||
taskTags: 'taskTags',
|
function: {
|
||||||
interval: 'interval',
|
userinfo: 'userinfo',
|
||||||
intervalTemplate: 'intervalTemplate',
|
},
|
||||||
},
|
};
|
||||||
function: {
|
|
||||||
userinfo: 'userinfo',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
} else if (API_ENDPOINT === 'https://appwrite.oys.undock.ca/v1') {
|
|
||||||
AppwriteIds = {
|
|
||||||
databaseId: 'bab_prod',
|
|
||||||
collection: {
|
|
||||||
boat: 'boat',
|
|
||||||
reservation: 'reservation',
|
|
||||||
skillTags: 'skillTags',
|
|
||||||
task: 'task',
|
|
||||||
taskTags: 'taskTags',
|
|
||||||
interval: 'interval',
|
|
||||||
intervalTemplate: 'intervalTemplate',
|
|
||||||
},
|
|
||||||
function: {
|
|
||||||
userinfo: '664038294b5473ef0c8d',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
const account = new Account(client);
|
const account = new Account(client);
|
||||||
const databases = new Databases(client);
|
const databases = new Databases(client);
|
||||||
|
|||||||
Reference in New Issue
Block a user