Update the list of integrations in the app

This commit is contained in:
Vladyslav Matsiiako
2022-11-29 20:02:14 -05:00
parent 91827aed3e
commit 8e2794f6ab
23 changed files with 123 additions and 56 deletions
@@ -15,13 +15,7 @@ import {
import Button from "../buttons/Button";
import InputField from "../InputField";
import ListBox from "../Listbox";
const envMapping = {
Development: "dev",
Staging: "staging",
Production: "prod",
Testing: "test",
};
import { envMapping } from "../../../public/data/frequentConstants";
const expiryMapping = {
"1 day": 86400,
@@ -4,15 +4,7 @@ import { faX } from "@fortawesome/free-solid-svg-icons";
import guidGenerator from "../../utilities/randomId";
import Button from "../buttons/Button";
const roles = ["admin", "user"];
const reverseEnvMapping = {
dev: "Development",
staging: "Staging",
prod: "Production",
test: "Testing",
};
import { reverseEnvMapping } from "../../../public/data/frequentConstants";
/**
* This is the component that we utilize for the user table - in future, can reuse it for some other purposes too.
@@ -1,6 +1,7 @@
import getSecrets from "~/pages/api/files/GetSecrets";
import guidGenerator from "../randomId";
import { envMapping } from "../../../public/data/frequentConstants";
const {
decryptAssymmetric,
@@ -9,13 +10,6 @@ const {
const nacl = require("tweetnacl");
nacl.util = require("tweetnacl-util");
const envMapping = {
Development: "dev",
Staging: "staging",
Production: "prod",
Testing: "test",
};
const getSecretsForProject = async ({
env,
setFileState,
@@ -1,6 +1,7 @@
import uploadSecrets from "~/pages/api/files/UploadSecrets";
import getLatestFileKey from "~/pages/api/workspace/getLatestFileKey";
import getWorkspaceKeys from "~/pages/api/workspace/getWorkspaceKeys";
import { envMapping } from "../../../public/data/frequentConstants";
const crypto = require("crypto");
const {
@@ -12,12 +13,6 @@ const {
const nacl = require("tweetnacl");
nacl.util = require("tweetnacl-util");
const envMapping = {
Development: "dev",
Staging: "staging",
Production: "prod",
Testing: "test",
};
const pushKeys = async (obj, workspaceId, env) => {
let sharedKey = await getLatestFileKey(workspaceId);