Changed Alias Paths
This commit is contained in:
parent
51b8b9f008
commit
b2a4890c71
|
|
@ -2,7 +2,7 @@ import express from 'express';
|
||||||
import cookieParser from 'cookie-parser';
|
import cookieParser from 'cookie-parser';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { ROOT } from './rootDir';
|
import { ROOT } from './rootDir';
|
||||||
import { jwtMiddleware, requireAuth } from 'auth-connector/server/auth';
|
import { jwtMiddleware, requireAuth } from '../auth-connector/source/server/auth';
|
||||||
import projectsRouter from './routes/projects';
|
import projectsRouter from './routes/projects';
|
||||||
import filesRouter from './routes/files';
|
import filesRouter from './routes/files';
|
||||||
import localesRouter from './routes/locales';
|
import localesRouter from './routes/locales';
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Project, ProjectMember, projects, projectMembers } from './db';
|
import { Project, ProjectMember, projects, projectMembers } from './db';
|
||||||
import type { AuthPayload } from 'auth-connector/shared/types';
|
import type { AuthPayload } from '../auth-connector/source/shared/types';
|
||||||
|
|
||||||
export function isOwner( project: Project, user: AuthPayload ): boolean
|
export function isOwner( project: Project, user: AuthPayload ): boolean
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import { getFileTree, readProjectFile, writeProjectFile, createProjectFile, createProjectDirectory, renameProjectEntry, deleteProjectEntry } from '../storage';
|
import { getFileTree, readProjectFile, writeProjectFile, createProjectFile, createProjectDirectory, renameProjectEntry, deleteProjectEntry } from '../storage';
|
||||||
import { requireAuth } from 'auth-connector/server/auth';
|
import { requireAuth } from '../../auth-connector/source/server/auth';
|
||||||
import { checkAccess } from '../projectAccess';
|
import { checkAccess } from '../projectAccess';
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import { groups, groupMembers } from '../db';
|
import { groups, groupMembers } from '../db';
|
||||||
import { requireAuth } from 'auth-connector/server/auth';
|
import { requireAuth } from '../../auth-connector/source/server/auth';
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
router.use(requireAuth);
|
router.use(requireAuth);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { requireAuth } from 'auth-connector/server/auth';
|
import { requireAuth } from '../../auth-connector/source/server/auth';
|
||||||
import { RJLog } from '../../library-ts/node/log/RJLog';
|
import { RJLog } from '../../library-ts/node/log/RJLog';
|
||||||
import { ROOT } from '../rootDir';
|
import { ROOT } from '../rootDir';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import { projects, projectMembers } from '../db';
|
import { projects, projectMembers } from '../db';
|
||||||
import { requireAuth } from 'auth-connector/server/auth';
|
import { requireAuth } from '../../auth-connector/source/server/auth';
|
||||||
import { createProjectStorage } from '../storage';
|
import { createProjectStorage } from '../storage';
|
||||||
import { isOwner, canView, getMemberRole } from '../projectAccess';
|
import { isOwner, canView, getMemberRole } from '../projectAccess';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { Router } from "express";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
import { requireAuth } from "auth-connector/server/auth";
|
import { requireAuth } from "../../auth-connector/source/server/auth";
|
||||||
import { getAgentStream, updateAgentConversation, AgentConfig } from "../rojos/RojosAgent";
|
import { getAgentStream, updateAgentConversation, AgentConfig } from "../rojos/RojosAgent";
|
||||||
import { readProjectFile, writeProjectFile, createProjectDirectory } from "../storage";
|
import { readProjectFile, writeProjectFile, createProjectDirectory } from "../storage";
|
||||||
import { checkAccess } from "../projectAccess";
|
import { checkAccess } from "../projectAccess";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Router } from 'express';
|
import { Router } from 'express';
|
||||||
import { requireAuth } from 'auth-connector/server/auth';
|
import { requireAuth } from '../../auth-connector/source/server/auth';
|
||||||
import { userSettings } from '../db';
|
import { userSettings } from '../db';
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,7 @@
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"outDir": "dist",
|
"outDir": "dist"
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"auth-connector/*": ["./source/auth-connector/source/*"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": ["source/server/**/*"]
|
"include": ["source/server/**/*"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue