@mongoosejs/studio 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/netlify.js +1 -0
- package/frontend/index.js +2 -0
- package/frontend/public/app.js +3 -3
- package/package.json +1 -1
package/backend/netlify.js
CHANGED
|
@@ -5,6 +5,7 @@ const { toNetlifyFunction } = require('extrovert');
|
|
|
5
5
|
|
|
6
6
|
module.exports = function netlify(options) {
|
|
7
7
|
const backend = Backend();
|
|
8
|
+
const mothershipUrl = options?._mothershipUrl || 'https://mongoose-js.netlify.app/.netlify/functions';
|
|
8
9
|
|
|
9
10
|
return toNetlifyFunction(async function wrappedNetlifyFunction(params) {
|
|
10
11
|
const actionName = params?.action;
|
package/frontend/index.js
CHANGED
|
@@ -4,6 +4,8 @@ const { execSync, exec } = require('child_process');
|
|
|
4
4
|
const webpack = require('webpack');
|
|
5
5
|
|
|
6
6
|
module.exports = async function frontend(apiUrl, isLambda, options, workspace) {
|
|
7
|
+
const mothershipUrl = options?._mothershipUrl || 'https://mongoose-js.netlify.app/.netlify/functions';
|
|
8
|
+
|
|
7
9
|
if (workspace == null && options?.apiKey) {
|
|
8
10
|
({ workspace } = await fetch(`${mothershipUrl}/getWorkspace`, {
|
|
9
11
|
method: 'POST',
|
package/frontend/public/app.js
CHANGED
|
@@ -1882,11 +1882,11 @@ exports.githubLogin = function githubLogin() {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
|
|
1884
1884
|
exports.github = function github(code) {
|
|
1885
|
-
return client.post('/github', { code, workspaceId: {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:
|
|
1885
|
+
return client.post('/github', { code, workspaceId: {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:23:01.316Z","__v":0,"baseUrl":"https://web.zevo.io","name":"ZEVO Dev"}._id }).then(res => res.data);
|
|
1886
1886
|
};
|
|
1887
1887
|
|
|
1888
1888
|
exports.me = function me() {
|
|
1889
|
-
return client.post('/me', { workspaceId: {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:
|
|
1889
|
+
return client.post('/me', { workspaceId: {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:23:01.316Z","__v":0,"baseUrl":"https://web.zevo.io","name":"ZEVO Dev"}._id }).then(res => res.data);
|
|
1890
1890
|
};
|
|
1891
1891
|
|
|
1892
1892
|
exports.hasAPIKey = client.hasAPIKey;
|
|
@@ -2024,7 +2024,7 @@ module.exports = app => app.component('splash', {
|
|
|
2024
2024
|
data: () => ({ error: null }),
|
|
2025
2025
|
computed: {
|
|
2026
2026
|
workspaceName() {
|
|
2027
|
-
return {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:
|
|
2027
|
+
return {"_id":"679a83f5e1a8219e1aa0c195","ownerId":"67993a84c9988e44997ac98e","members":[{"userId":"67993a84c9988e44997ac98e","roles":["owner"]}],"createdAt":"2025-01-29T19:39:33.970Z","updatedAt":"2025-01-29T21:23:01.316Z","__v":0,"baseUrl":"https://web.zevo.io","name":"ZEVO Dev"}.name;
|
|
2028
2028
|
}
|
|
2029
2029
|
},
|
|
2030
2030
|
async mounted() {
|