-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Projects): add project page commands and repository (#176)
- Loading branch information
1 parent
0a9621b
commit 2b78fb3
Showing
58 changed files
with
980 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ DECLARE @firstGroupId uniqueidentifier | |
DECLARE @secondGroupId uniqueidentifier | ||
DECLARE @thirdGroupId uniqueidentifier | ||
|
||
DECLARE @firstProjectId uniqueidentifier | ||
DECLARE @secondProjectId uniqueidentifier | ||
DECLARE @thirdProjectId uniqueidentifier | ||
|
||
SET @firstUserId = newid() | ||
SET @secondUserId = newid() | ||
SET @thirdUserId = newid() | ||
|
@@ -17,6 +21,10 @@ SET @firstGroupId = newid() | |
SET @secondGroupId = newid() | ||
SET @thirdGroupId = newid() | ||
|
||
SET @firstProjectId = newid() | ||
SET @secondProjectId = newid() | ||
SET @thirdProjectId = newid() | ||
|
||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@firstUserId,"[email protected]","S111111") | ||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@secondUserId,"[email protected]","S222222") | ||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@thirdUserId,"[email protected]","S333333") | ||
|
@@ -30,4 +38,10 @@ INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newi | |
INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newid(), @firstGroupId, @thirdUserId) | ||
INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newid(), @secondGroupId, @secondUserId) | ||
|
||
INSERT INTO [sch_ECOTAG].[T_Project]( | ||
[PRJ_Id],[PRJ_DatasetId],[PRJ_GroupId],[PRJ_Name],[PRJ_NumberCrossAnnotation],[PRJ_CreateDate],[PRJ_AnnotationType],[PRJ_LabelsJson],[PRJ_CreatorNameIdentifier] | ||
) VALUES ( | ||
newid(), newid(), @firstGroupId, "firstproject", 10, 1647129600, 0, '[{"name": "Recto", "color": "#212121", "id": "0"}, {"name": "Verso", "color": "#ffbb00", "id": "1"}, {"name": "Signature", "color": "#f20713", "id": "2"}]',"s666666" | ||
) | ||
|
||
GO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,26 @@ END | |
GO | ||
|
||
|
||
/****** Object: Table [sch_ECOTAG].[T_Project] ******/ | ||
if not exists (select * from sysobjects where name='T_Project' and xtype='U') | ||
BEGIN | ||
CREATE TABLE [sch_ECOTAG].[T_Project]( | ||
[PRJ_Id] uniqueidentifier NOT NULL DEFAULT newid(), | ||
[PRJ_DatasetId] uniqueidentifier NOT NULL, | ||
[PRJ_GroupId] uniqueidentifier NOT NULL, | ||
[PRJ_Name] [varchar](16) NOT NULL, | ||
[PRJ_NumberCrossAnnotation] [int] NOT NULL CHECK (PRJ_NumberCrossAnnotation between 1 and 10), | ||
[PRJ_CreateDate] BIGINT NOT NULL, | ||
[PRJ_AnnotationType] int NOT NULL, | ||
[PRJ_LabelsJson] [varchar](2048) NOT NULL, | ||
[PRJ_CreatorNameIdentifier] [varchar](32) NOT NULL, | ||
CONSTRAINT [PK_T_Project] UNIQUE([PRJ_Id]) | ||
) | ||
END | ||
|
||
GO | ||
|
||
|
||
CREATE CLUSTERED INDEX [IND_DatasetIsLocked] ON [sch_ECOTAG].[T_Dataset] | ||
( | ||
[DTS_IsLocked] ASC | ||
|
@@ -176,6 +196,10 @@ DECLARE @firstGroupId uniqueidentifier | |
DECLARE @secondGroupId uniqueidentifier | ||
DECLARE @thirdGroupId uniqueidentifier | ||
|
||
DECLARE @firstProjectId uniqueidentifier | ||
DECLARE @secondProjectId uniqueidentifier | ||
DECLARE @thirdProjectId uniqueidentifier | ||
|
||
SET @firstUserId = newid() | ||
SET @secondUserId = newid() | ||
SET @thirdUserId = newid() | ||
|
@@ -184,6 +208,10 @@ SET @firstGroupId = newid() | |
SET @secondGroupId = newid() | ||
SET @thirdGroupId = newid() | ||
|
||
SET @firstProjectId = newid() | ||
SET @secondProjectId = newid() | ||
SET @thirdProjectId = newid() | ||
|
||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@firstUserId,"[email protected]","S111111") | ||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@secondUserId,"[email protected]","S222222") | ||
INSERT INTO [sch_ECOTAG].[T_User]([USR_Id],[USR_Email],[USR_Subject]) VALUES (@thirdUserId,"[email protected]","S333333") | ||
|
@@ -197,6 +225,12 @@ INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newi | |
INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newid(), @firstGroupId, @thirdUserId) | ||
INSERT INTO [sch_ECOTAG].[T_GroupUsers]([GPU_Id],[GRP_Id],[USR_Id]) VALUES (newid(), @secondGroupId, @secondUserId) | ||
|
||
INSERT INTO [sch_ECOTAG].[T_Project]( | ||
[PRJ_Id],[PRJ_DatasetId],[PRJ_GroupId],[PRJ_Name],[PRJ_NumberCrossAnnotation],[PRJ_CreateDate],[PRJ_AnnotationType],[PRJ_LabelsJson],[PRJ_CreatorNameIdentifier] | ||
) VALUES ( | ||
newid(), newid(), @firstGroupId, "firstproject", 10, 1647129600, 0, '[{"name": "Recto", "color": "#212121", "id": "0"}, {"name": "Verso", "color": "#ffbb00", "id": "1"}, {"name": "Signature", "color": "#f20713", "id": "2"}]',"s666666" | ||
) | ||
|
||
GO | ||
|
||
USE [ecotag] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
src/Ml.Cli.WebApp/ClientApp/src/Server/Project/Add/New/constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
export const NAME = 'NAME'; | ||
export const DATASET = 'DATASET'; | ||
export const CLASSIFICATION = 'CLASSIFICATION'; | ||
export const TYPE = 'TYPE'; | ||
export const NUMBER_CROSS_ANNOTATION = 'NUMBER_CROSS_ANNOTATION'; | ||
export const LABELS = 'LABELS'; | ||
export const GROUP = 'GROUP'; | ||
|
||
export const MSG_REQUIRED = 'Le champs est obligatoire'; | ||
export const MSG_REQUIRED = 'Le champ est obligatoire'; | ||
export const MSG_MAX_LABELS_LENGTH = 'Le nombre de labels maximum est limité à 10'; | ||
export const MSG_MIN_LENGTH = 'Le champ ne contient pas assez de caractères (3 min)'; | ||
export const MSG_MAX_LENGTH = 'Le champ contient trop de caractères (16 max)'; | ||
export const MSG_TEXT_REGEX = "Veuillez respecter le bon format (Lettres, '-' ou '_' uniquement)"; | ||
export const MSG_PROJECT_NAME_ALREADY_EXIST = 'Un projet avec ce nom existe déjà'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.