Skip to content

Commit

Permalink
0.0.533 update hasura remove core-js
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 17, 2024
1 parent d455603 commit dac4885
Show file tree
Hide file tree
Showing 5 changed files with 5,608 additions and 27,706 deletions.
6 changes: 1 addition & 5 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,4 @@ tasks:
- init: |
npm ci
npm run build
npm start -- --generate --up
# - command: |
# ./ensure-node-version.sh
# . ~/.nvm/nvm.sh && nvm use
# ./wait-for-prebuild.sh && (npm run gitpod-start | tee gitpod-start.log.txt);
npm start -- --generate --up --snapshot
6 changes: 3 additions & 3 deletions imports/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Files = React.memo(function Files({
Props,
Component,
}) => (
<Component {...getRootProps({})} bg={isDragActive ? 'deepBgDark' : isDragAccept ? 'deepBgActive' : isDragReject ? 'deepBgDanger' : 'transparent'} {...Props}>
<Component {...getRootProps({})} bg={isDragActive ? 'deepBgDark' : isDragAccept ? 'deepBgActive' : isDragReject ? 'deepBgDanger' : 'transparent'} cursor={isDragActive ? 'drag' : undefined} {...Props}>
{input}
{children}
</Component>
Expand All @@ -40,7 +40,7 @@ export const Files = React.memo(function Files({

insert?: any;
containerId: Id;
onInsert: (id, files, a, event) => void;
onInsert: (id, file, a, event) => void;
Props?: any;
[key: string]: any;
}) {
Expand Down Expand Up @@ -107,7 +107,7 @@ export function useFiles({
containerId,
...insert,
});
onInsert && onInsert(result?.data?.[0]?.id, files, a, event);
onInsert && onInsert(result?.data?.[0]?.id, file, a, event);
}
};
const dropzone = dz.useDropzone({
Expand Down
38 changes: 38 additions & 0 deletions migrations/1725896842619-readme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { generateApolloClient } from '@deep-foundation/hasura/client.js';
import Debug from 'debug';
import { DeepClient } from '../imports/client.js';
import { installPackage } from './1678940577209-deepcase.js';
import { containWithin, packageExists, sharePermissions } from './1664940577200-tsx.js';

const debug = Debug('deeplinks:migrations:readme');
const log = debug.extend('log');
const error = debug.extend('error');

const rootClient = generateApolloClient({
path: `${process.env.MIGRATIONS_HASURA_PATH}/v1/graphql`,
ssl: !!+(process.env.MIGRATIONS_HASURA_SSL || 0),
secret: process.env.MIGRATIONS_HASURA_SECRET,
});

const root = new DeepClient({
apolloClient: rootClient,
});

export const up = async () => {
log('up');
const packageName = '@deep-foundation/readme';
if (!await packageExists(packageName)) {
const adminId = await root.id('deep', 'admin');
const admin = await root.login({ linkId: adminId });
const deep = new DeepClient({ deep: root, ...admin });

await installPackage(deep, '@deep-foundation/readme');
const packageId = await root.id('@deep-foundation/readme');
await sharePermissions(adminId, packageId);
await containWithin(adminId, packageId);
}
};

export const down = async () => {
log('down');
};
Loading

0 comments on commit dac4885

Please sign in to comment.