Skip to content

Commit

Permalink
fix: remove tiptap missing token
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed Oct 19, 2023
1 parent e6cfbc0 commit 530cc29
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 118 deletions.
16 changes: 0 additions & 16 deletions .kontinuous/env/dev/templates/npm.sealed-secret.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .kontinuous/env/preprod/templates/npm.sealed-secret.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .kontinuous/env/prod/templates/npm.sealed-secret.yaml

This file was deleted.

24 changes: 4 additions & 20 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,21 @@ jobs:
with:
imagePackage: frontend
dockerfile: targets/frontend/Dockerfile
secrets:
npmrc:
secretName: npm
secretKey: NPMRC
build-ingester:
use: build
with:
imagePackage: ingester
dockerfile: targets/ingester/Dockerfile
secrets:
npmrc:
secretName: npm
secretKey: NPMRC
build-alert:
use: build
with:
imagePackage: alert
dockerfile: targets/alert-cli/Dockerfile
secrets:
npmrc:
secretName: npm
secretKey: NPMRC
build-export:
use: build
with:
imagePackage: export
dockerfile: targets/export-elasticsearch/Dockerfile
secrets:
npmrc:
secretName: npm
secretKey: NPMRC
build-contributions:
use: build
with:
Expand All @@ -53,7 +37,7 @@ jobs:

www:
~chart: app
~needs: [build-frontend]
~needs: [ build-frontend ]
probesPath: /healthz
imagePackage: frontend
envFrom:
Expand All @@ -75,7 +59,7 @@ www:

contributions:
~chart: app
~needs: [build-contributions]
~needs: [ build-contributions ]
probesPath: /
imagePackage: contributions
containerPort: 3200
Expand All @@ -95,7 +79,7 @@ contributions:

export:
~chart: app
~needs: [build-export]
~needs: [ build-export ]
probesPath: /healthz
ingress:
enabled: false
Expand All @@ -117,7 +101,7 @@ export:

hasura:
~chart: hasura
~needs: [build-hasura]
~needs: [ build-hasura ]
imagePackage: hasura
ingress:
enabled: false
Expand Down
3 changes: 1 addition & 2 deletions targets/alert-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ WORKDIR /
COPY . /

# hadolint ignore=SC2046
RUN --mount=type=secret,id=npmrc,target=/.npmrc \
yarn --frozen-lockfile
RUN yarn --frozen-lockfile

RUN yarn workspace @shared/graphql-client build

Check failure on line 13 in targets/alert-cli/Dockerfile

View workflow job for this annotation

GitHub Actions / Lint Dockerfile

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

Expand Down
3 changes: 1 addition & 2 deletions targets/export-elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ COPY package.json /package.json
COPY yarn.lock /yarn.lock

# hadolint ignore=SC2046
RUN --mount=type=secret,id=npmrc,target=/.npmrc \
yarn --frozen-lockfile
RUN yarn --frozen-lockfile

COPY . /

Expand Down
5 changes: 1 addition & 4 deletions targets/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ COPY shared/types/package.json /shared/types/package.json
COPY targets/frontend/package.json /targets/frontend/package.json
COPY package.json /package.json
COPY yarn.lock /yarn.lock
# Hack copy .npmrc file only if exist (dev only) otherwise use secret
COPY *.npmrc /

# hadolint ignore=SC2046
RUN --mount=type=secret,id=npmrc,target=/.npmrc \
yarn --frozen-lockfile
RUN yarn --frozen-lockfile

COPY . /

Expand Down
3 changes: 0 additions & 3 deletions targets/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
"@socialgouv/cdtn-sources": "^4.52.1",
"@socialgouv/cdtn-ui": "^4.92.0",
"@socialgouv/matomo-next": "^1.2.2",
"@tiptap-pro/extension-details": "^2.2.3",
"@tiptap-pro/extension-details-content": "^2.2.3",
"@tiptap-pro/extension-details-summary": "^2.2.3",
"@tiptap/extension-placeholder": "^2.1.10",
"@tiptap/extension-table": "^2.1.7",
"@tiptap/extension-table-cell": "^2.1.7",
Expand Down
11 changes: 0 additions & 11 deletions targets/frontend/src/components/forms/EditionField/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import { TitleBox } from "../TitleBox";
import { MenuSpecial } from "./MenuSpecial";
import { MenuStyle } from "./MenuStyle";
import { MenuTable } from "./MenuTable";
import { Details } from "@tiptap-pro/extension-details";
import { DetailsSummary } from "@tiptap-pro/extension-details-summary";
import { DetailsContent } from "@tiptap-pro/extension-details-content";
import { Placeholder } from "@tiptap/extension-placeholder";

export type EditorProps = {
Expand All @@ -41,14 +38,6 @@ export const Editor = ({ content, onUpdate, error, disabled }: EditorProps) => {
TableRow,
TableHeader,
TableCell,
Details.configure({
persist: false,
HTMLAttributes: {
class: "details",
},
}),
DetailsSummary,
DetailsContent,
Placeholder.configure({
includeChildren: true,
placeholder: ({ node }) => {
Expand Down
13 changes: 0 additions & 13 deletions targets/frontend/src/components/forms/EditionField/MenuSpecial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Editor, FloatingMenu } from "@tiptap/react";
import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted";
import FormatListNumberedIcon from "@mui/icons-material/FormatListNumbered";
import GridOnIcon from "@mui/icons-material/GridOn";
import StorageIcon from "@mui/icons-material/Storage";
import { styled } from "@mui/system";

const tableHTML = `
Expand Down Expand Up @@ -59,18 +58,6 @@ export const MenuSpecial = ({ editor }: { editor: Editor | null }) => {
>
<GridOnIcon />
</button>
<button
onClick={() =>
editor.isActive("details")
? editor.chain().focus().unsetDetails().run()
: editor.chain().focus().setDetails().run()
}
className={editor.isActive("details") ? "is-active" : ""}
type="button"
title="Ajouter un accordéon"
>
<StorageIcon />
</button>
</StyledFloatingMenu>
) : (
<></>
Expand Down
13 changes: 0 additions & 13 deletions targets/frontend/src/components/forms/EditionField/MenuStyle.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BubbleMenu, Editor } from "@tiptap/react";
import FormatBoldIcon from "@mui/icons-material/FormatBold";
import FormatItalicIcon from "@mui/icons-material/FormatItalic";
import StorageIcon from "@mui/icons-material/Storage";
import { styled } from "@mui/system";

export const MenuStyle = ({ editor }: { editor: Editor | null }) => {
Expand Down Expand Up @@ -43,18 +42,6 @@ export const MenuStyle = ({ editor }: { editor: Editor | null }) => {
>
<FormatItalicIcon />
</button>
<button
onClick={() => {
editor.isActive("details")
? editor.chain().focus().unsetDetails().run()
: editor.chain().focus().setDetails().run();
}}
className={editor.isActive("details") ? "is-active" : ""}
type="button"
title="Placer dans un accordéon"
>
<StorageIcon />
</button>
</StyledBubbleMenu>
) : (
<></>
Expand Down
3 changes: 1 addition & 2 deletions targets/ingester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ COPY . /
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*

# hadolint ignore=SC2046
RUN --mount=type=secret,id=npmrc,target=/.npmrc \
yarn --frozen-lockfile
RUN yarn --frozen-lockfile

RUN yarn workspace @shared/graphql-client build

Expand Down

0 comments on commit 530cc29

Please sign in to comment.