Update package names

This commit is contained in:
Darren Clarke 2024-06-05 08:52:41 +02:00
parent 89d229eba9
commit 85a0fc11e5
106 changed files with 1908 additions and 2686 deletions

View file

@ -1,5 +1,5 @@
{
"name": "bridge-common",
"name": "@link-stack/bridge-common",
"version": "1.0.0",
"main": "build/main/index.js",
"type": "module",
@ -9,19 +9,18 @@
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"@auth/kysely-adapter": "^1.1.0",
"@auth/kysely-adapter": "^1.2.0",
"graphile-worker": "^0.16.6",
"kysely": "0.26.1",
"pg": "^8.11.5"
"pg": "^8.12.0"
},
"devDependencies": {
"@babel/core": "7.24.5",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.24.1",
"eslint": "^9.0.0",
"prettier": "^3.2.5",
"ts-config": "*",
"tsx": "^4.10.2",
"@babel/core": "7.24.6",
"@babel/preset-env": "7.24.6",
"@babel/preset-typescript": "7.24.6",
"prettier": "^3.3.0",
"@link-stack/typescript-config": "*",
"tsx": "^4.11.2",
"typescript": "^5.4.5"
}
}

View file

@ -1,5 +1,5 @@
{
"extends": "ts-config",
"extends": "@link-stack/typescript-config",
"compilerOptions": {
"outDir": "build/main",
"module": "esnext",

View file

@ -1,7 +1,7 @@
"use server";
import { revalidatePath } from "next/cache";
import { db, Database } from "bridge-common";
import { db, Database } from "@link-stack/bridge-common";
import { FieldDescription, Entity } from "../lib/service";
import crypto from "crypto";

View file

@ -4,7 +4,13 @@ import { FC, useEffect, useState } from "react";
import { useFormState } from "react-dom";
import { Grid } from "@mui/material";
import { useRouter } from "next/navigation";
import { Button, Dialog, TextField, Select, MultiValueField } from "ui";
import {
Button,
Dialog,
TextField,
Select,
MultiValueField,
} from "@link-stack/ui";
import { generateCreateAction } from "../lib/actions";
import { FieldDescription } from "../lib/service";
import { serviceConfig } from "../config/config";

View file

@ -3,9 +3,15 @@
import { FC, useState } from "react";
import { Grid, Box } from "@mui/material";
import { useRouter } from "next/navigation";
import { DisplayTextField, Button, Dialog, colors, typography } from "ui";
import {
DisplayTextField,
Button,
Dialog,
colors,
typography,
} from "@link-stack/ui";
import { Selectable } from "kysely";
import { type Database } from "bridge-common";
import { type Database } from "@link-stack/bridge-common";
import { QRCode } from "./QRCode";
import { generateDeleteAction } from "../lib/actions";
import { serviceConfig } from "../config/config";

View file

@ -4,9 +4,15 @@ import { FC, useEffect, useState } from "react";
import { useFormState } from "react-dom";
import { Grid } from "@mui/material";
import { useRouter } from "next/navigation";
import { TextField, Dialog, Button, Select, MultiValueField } from "ui";
import {
TextField,
Dialog,
Button,
Select,
MultiValueField,
} from "@link-stack/ui";
import { Selectable } from "kysely";
import { type Database } from "bridge-common";
import { type Database } from "@link-stack/bridge-common";
import { generateUpdateAction } from "../lib/actions";
import { serviceConfig } from "../config/config";
import { FieldDescription } from "../lib/service";

View file

@ -2,9 +2,9 @@
import { FC } from "react";
import { useRouter } from "next/navigation";
import { List as InternalList, Button } from "ui";
import { List as InternalList, Button } from "@link-stack/ui";
import { type Selectable } from "kysely";
import { type Database } from "bridge-common";
import { type Database } from "@link-stack/bridge-common";
import { serviceConfig } from "../config/config";
import { getBasePath } from "../lib/frontendUtils";

View file

@ -1,4 +1,4 @@
import { type Database } from "bridge-common";
import { type Database } from "@link-stack/bridge-common";
import type { ServiceConfig } from "../lib/service";
import { facebookConfig as facebook } from "./facebook";
import { signalConfig as signal } from "./signal";

View file

@ -1,4 +1,4 @@
import { Database } from "bridge-common";
import { Database } from "@link-stack/bridge-common";
import {
createAction,
updateAction,

View file

@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from "next/server";
import { Service } from "./service";
import { db, getWorkerUtils } from "bridge-common";
import { db, getWorkerUtils } from "@link-stack/bridge-common";
export class Facebook extends Service {
async handleWebhook(req: NextRequest) {

View file

@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from "next/server";
import { GridColDef } from "@mui/x-data-grid-pro";
import { Database, db, getWorkerUtils } from "bridge-common";
import { Database, db, getWorkerUtils } from "@link-stack/bridge-common";
import { getServiceTable } from "../config/config";
const entities = [

View file

@ -1,5 +1,5 @@
import { NextResponse } from "next/server";
import { db } from "bridge-common";
import { db } from "@link-stack/bridge-common";
import { revalidatePath } from "next/cache";
import { Service, ServiceParams } from "./service";

View file

@ -1,11 +1,11 @@
{
"name": "bridge-ui",
"name": "@link-stack/bridge-ui",
"version": "0.2.0",
"scripts": {
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"@auth/kysely-adapter": "^1.1.0",
"@auth/kysely-adapter": "^1.2.0",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
@ -13,11 +13,11 @@
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^7.4.0",
"@mui/x-date-pickers-pro": "^7.4.0",
"@mui/x-data-grid-pro": "^7.6.1",
"@mui/x-date-pickers-pro": "^7.6.1",
"date-fns": "^3.6.0",
"kysely": "0.26.1",
"material-ui-popup-state": "^5.1.0",
"material-ui-popup-state": "^5.1.2",
"next": "14.2.3",
"react": "18.3.1",
"react-cookie": "^7.1.4",
@ -26,14 +26,14 @@
"react-iframe": "^1.8.5",
"react-markdown": "^9.0.1",
"react-polyglot": "^0.7.2",
"react-qr-code": "^2.0.13",
"react-qr-code": "^2.0.14",
"tss-react": "^4.9.10",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@babel/core": "^7.24.6",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
@ -43,7 +43,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react": "^7.34.2",
"file-loader": "^6.2.0",
"typescript": "5.4.5"
}

View file

@ -1,5 +1,5 @@
{
"name": "eslint-config",
"name": "@link-stack/eslint-config",
"version": "0.3.10",
"description": "amigo's eslint config",
"author": "Abel Luck <abel@guardianproject.info>",
@ -9,22 +9,20 @@
"fmt": "prettier \"profile/**/*.js\" --write"
},
"dependencies": {
"@rushstack/eslint-patch": "^1.10.2",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@rushstack/eslint-patch": "^1.10.3",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo-space": "^0.35.0",
"eslint-plugin-cypress": "^3.2.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.2.0",
"eslint-plugin-unicorn": "53.0.0",
"@babel/eslint-parser": "7.24.5"
"@babel/eslint-parser": "7.24.6"
},
"peerDependencies": {
"eslint": "^8",
"typescript": "^4.9.5"
},
"devDependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "jest-config",
"name": "@link-stack/jest-config",
"version": "0.0.1",
"description": "",
"author": "Abel Luck <abel@guardianproject.info>",

View file

@ -4,7 +4,7 @@ import {
performLeafcutterQuery,
performZammadQuery,
createUserVisualization,
} from "opensearch-common";
} from "@link-stack/opensearch-common";
export const createUserVisualizationAction = async ({
visualizationID,

View file

@ -1,5 +1,5 @@
{
"name": "leafcutter-ui",
"name": "@link-stack/leafcutter-ui",
"version": "0.2.0",
"scripts": {
"build": "tsc -p tsconfig.json"
@ -12,11 +12,11 @@
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^7.4.0",
"@mui/x-date-pickers-pro": "^7.4.0",
"opensearch-common": "*",
"@mui/x-data-grid-pro": "^7.6.1",
"@mui/x-date-pickers-pro": "^7.6.1",
"@link-stack/opensearch-common": "*",
"date-fns": "^3.6.0",
"material-ui-popup-state": "^5.1.0",
"material-ui-popup-state": "^5.1.2",
"next": "14.2.3",
"react": "18.3.1",
"react-cookie": "^7.1.4",
@ -29,9 +29,9 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@babel/core": "^7.24.6",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
"eslint": "^8.0.0",
@ -40,7 +40,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react": "^7.34.2",
"file-loader": "^6.2.0",
"typescript": "5.4.5"
}

View file

@ -1,26 +1,21 @@
{
"name": "opensearch-common",
"name": "@link-stack/opensearch-common",
"version": "0.2.0",
"scripts": {
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"@opensearch-project/opensearch": "^2.8.0",
"@opensearch-project/opensearch": "^2.9.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@babel/core": "^7.24.6",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
"eslint": "^8.0.0",
"eslint-config-next": "^14.2.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"@link-stack/typescript-config": "*",
"@link-stack/eslint-config": "*",
"file-loader": "^6.2.0",
"typescript": "5.4.5"
}

View file

@ -0,0 +1,8 @@
{
"name": "@link-stack/signal-api",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}

View file

@ -8,7 +8,7 @@ In `tsconfig.json`
```json
{
"extends": "ts-config",
"extends": "@link-stack/typescript-config",
"compilerOptions": {
"incremental": true,
"outDir": "build/main",

View file

@ -1,5 +1,5 @@
{
"name": "ts-config",
"name": "@link-stack/typescript-config",
"version": "0.1.4",
"description": "Shared TypeScript config",
"license": "AGPL-3.0-or-later",

View file

@ -1,5 +1,5 @@
{
"name": "ui",
"name": "@link-stack/ui",
"version": "1.0.0",
"description": "",
"scripts": {
@ -11,15 +11,15 @@
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^7.4.0",
"@mui/x-date-pickers-pro": "^7.4.0",
"@mui/x-data-grid-pro": "^7.6.1",
"@mui/x-date-pickers-pro": "^7.6.1",
"next": "14.2.3",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"typescript": "^5.4.5"
}
}

View file

@ -1,14 +1,14 @@
{
"name": "zammad-addon-bridge",
"name": "@link-stack/zammad-addon-bridge",
"displayName": "CDR Bridge",
"version": "2.0.0",
"description": "An addon that adds CDR Bridge channels to Zammad.",
"scripts": {
"build": "node ../../node_modules/zammad-addon-common/dist/build.js",
"migrate": "node ../../node_modules/zammad-addon-common/dist/migrate.js"
"build": "node '../../node_modules/@link-stack/zammad-addon-common/dist/build.js'",
"migrate": "node '../../node_modules/@link-stack/zammad-addon-common/dist/migrate.js'"
},
"dependencies": {
"zammad-addon-common": "*"
"@link-stack/zammad-addon-common": "*"
},
"author": "",
"license": "AGPL-3.0-or-later"

View file

@ -74,8 +74,9 @@ export const createZPM = async ({ name, displayName, version }: Record<string, s
const main = async () => {
const packageJSON = JSON.parse(await fs.readFile("./package.json", "utf-8"));
const { name, displayName, version } = packageJSON;
const { name: fullName, displayName, version } = packageJSON;
console.log(`Building addon ${displayName} v${version}`);
const name = fullName.split("/").pop();
await createZPM({ name, displayName, version });
};

View file

@ -1,5 +1,5 @@
{
"name": "zammad-addon-common",
"name": "@link-stack/zammad-addon-common",
"version": "1.0.0",
"description": "",
"bin": {

View file

@ -1,14 +1,14 @@
{
"name": "zammad-addon-hardening",
"name": "@link-stack/zammad-addon-hardening",
"displayName": "Hardening",
"version": "2.0.0",
"description": "A Zammad addon that hardens a Zammad instance according to CDR's needs.",
"scripts": {
"build": "node ../../node_modules/zammad-addon-common/dist/build.js",
"migrate": "node ../../node_modules/zammad-addon-common/dist/migrate.js"
"build": "node '../../node_modules/@link-stack/zammad-addon-common/dist/build.js'",
"migrate": "node '../../node_modules/@link-stack/zammad-addon-common/dist/migrate.js'"
},
"dependencies": {
"zammad-addon-common": "*"
"@link-stack/zammad-addon-common": "*"
},
"author": "",
"license": "AGPL-3.0-or-later"

View file

@ -1,14 +1,14 @@
{
"name": "zammad-addon-leafcutter",
"name": "@link-stack/zammad-addon-leafcutter",
"displayName": "Leafcutter",
"version": "2.0.0",
"description": "Adds a common set of tags for Leafcutter uses.",
"scripts": {
"build": "node ../../node_modules/zammad-addon-common/dist/build.js",
"migrate": "node ../../node_modules/zammad-addon-common/dist/migrate.js"
"build": "node '../../node_modules/@link-stack/zammad-addon-common/dist/build.js'",
"migrate": "node '../../node_modules/@link-stack/zammad-addon-common/dist/migrate.js'"
},
"dependencies": {
"zammad-addon-common": "*"
"@link-stack/zammad-addon-common": "*"
},
"author": "",
"license": "AGPL-3.0-or-later"