Skip to content

Conversation

@azinit
Copy link
Contributor

@azinit azinit commented Sep 22, 2021

  • Move ui, lib, api to shared/{ui, lib, api}
  • Unify env-vars init at shared/config

@@ -1,2 +0,0 @@
export const avatarUri =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не используется в проекте

Copy link
Contributor Author

@azinit azinit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-reviewed

Copy link
Contributor Author

@azinit azinit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-reviewed

sessionModel.$session,
(card, viewer) => {
return !!viewer && viewer.id === card?.authorId;
return Boolean(viewer) && viewer.id === card?.authorId;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting)

Comment on lines +1 to +13
// // NOTE: Uncomment if need
// /**
// * Getting env-var
// * @throwable
// */
// const getEnvVar = (key: string) => {
// if (process.env[key] === undefined) {
// throw new Error(`Env variable ${key} is required`);
// }
// return process.env[key]!;
// };
// // Usage:
// export const SESSION_TOKEN = getEnvVar('RAZZLE_SESSION_TOKEN');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можем сразу выпилить, но на всякий решил оставить (Если хотим сразу крашить приложуху, на случай когда не находится переменная)

@sergeysova sergeysova merged commit bc2eef3 into master Sep 24, 2021
@sergeysova sergeysova deleted the refactor/box-204-unify-shared branch September 24, 2021 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants