Skip to content

Commit e4ac8a0

Browse files
authored
remove codeium related code (#519)
1 parent cea43e8 commit e4ac8a0

File tree

27 files changed

+8
-1414
lines changed

27 files changed

+8
-1414
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ src/tailwind.output.css
3434
*-checkpoint*
3535

3636
back/
37-
ui/src/proto/*

apps/api/src/resolver_user.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -128,29 +128,6 @@ export function createUserResolver({ jwtSecret, googleClientId }) {
128128
};
129129
}
130130

131-
async function updateCodeiumAPIKey(_, { apiKey }, { userId }) {
132-
if (!userId) throw Error("Unauthenticated");
133-
let user = await prisma.user.findFirst({
134-
where: {
135-
id: userId,
136-
},
137-
});
138-
if (!user) throw Error("User not found.");
139-
if (user.id !== userId) {
140-
throw new Error("You do not have access to the user.");
141-
}
142-
// do the udpate
143-
await prisma.user.update({
144-
where: {
145-
id: userId,
146-
},
147-
data: {
148-
codeiumAPIKey: apiKey,
149-
},
150-
});
151-
return true;
152-
}
153-
154131
return {
155132
Query: {
156133
me,
@@ -160,7 +137,6 @@ export function createUserResolver({ jwtSecret, googleClientId }) {
160137
loginWithGoogle,
161138
signup,
162139
updateUser,
163-
updateCodeiumAPIKey,
164140
},
165141
};
166142
}

apps/api/src/typedefs.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const typeDefs = gql`
1212
password: String!
1313
firstname: String!
1414
lastname: String!
15-
codeiumAPIKey: String
1615
}
1716
1817
type Repo {
@@ -55,7 +54,5 @@ export const typeDefs = gql`
5554
deleteCollaborator(repoId: String!, collaboratorId: String!): Boolean
5655
star(repoId: ID!): Boolean
5756
unstar(repoId: ID!): Boolean
58-
59-
updateCodeiumAPIKey(apiKey: String!): Boolean
6057
}
6158
`;

apps/file-backend/src/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const typeDefs = gql`
1313
password: String!
1414
firstname: String!
1515
lastname: String!
16-
codeiumAPIKey: String
1716
}
1817
1918
type Repo {

apps/ui/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
src/proto/*
2-
31
# Logs
42
logs
53
*.log

apps/ui/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN yarn install --frozen-lockfile
99
COPY . .
1010

1111
ENV NODE_OPTIONS="--max_old_space_size=4096"
12-
RUN yarn run generate
1312
RUN yarn build
1413

1514
FROM nginx:1.19-alpine AS server

apps/ui/buf.gen.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/ui/buf.lock

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/ui/buf.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

apps/ui/exa/codeium_common_pb/codeium_common.proto

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)