Skip to content

Commit

Permalink
Setup of repo continued
Browse files Browse the repository at this point in the history
  • Loading branch information
AN-BC committed Nov 19, 2024
1 parent 8feb85e commit b31e0ce
Show file tree
Hide file tree
Showing 798 changed files with 129,241 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CodeGen/.env
CodeGen/node_modules/**
MJAPI/.env
MJAPI/node_modules/**
MJExplorer/node_modules/**
MJExplorer/.angular/**
GeneratedEntities/node_modules/**
GeneratedEntities/dist/**
GeneratedActions/node_modules/**
GeneratedActions/dist/**
abstracts/Portal/node_modules/**
abstracts/Portal/.angular/**
CodeGen/codegen.output.txt
.mjrc.yml
install.config.json
MemberJunction_Code_Bootstrap.zip
60 changes: 60 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "MJAPI",
"envFile": "${workspaceFolder}/MJAPI/.env",
"cwd": "${workspaceFolder}/MJAPI",
"runtimeExecutable": "npm",
"runtimeArgs": ["start"],
"skipFiles": ["${workspaceFolder}/MJAPI/node_modules/**/*.js", "<node_internals>/**"]
},
{
"type": "chrome",
"request": "launch",
"preLaunchTask": "start MJExplorer",
"name": "MJExplorer",
"url": "http://localhost:4200",
"cwd": "${workspaceFolder}/MJExplorer",
"sourceMaps": true,
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${workspaceFolder}/MJExplorer/src/*"
}
},
{
"type": "chrome",
"request": "launch",
"preLaunchTask": "start Portal",
"name": "Portal",
"url": "http://localhost:4200",
"cwd": "${workspaceFolder}/abstracts/Portal",
"sourceMaps": true,
"webRoot": "${workspaceFolder}/abstracts/Portal",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${workspaceFolder}/abstracts/Portal/src/*"
}
},
{
"type": "node",
"request": "launch",
"name": "CodeGen",
"envFile": "${workspaceFolder}/CodeGen/.env",
"cwd": "${workspaceFolder}/CodeGen",
"runtimeExecutable": "npm",
"runtimeArgs": ["start"],
"skipFiles": ["${workspaceFolder}/node_modules/**/*.js", "<node_internals>/**"]
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}/packages/MJExplorer",
"sourceMaps": true
}
]
}

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
85 changes: 85 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "BaseEntities/tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": "build",
"label": "tsc: build - tsconfig.json"
},
{
"type": "typescript",
"tsconfig": "GeneratedEntities/tsconfig.json",
"problemMatcher": [
"$tsc"
],
"group": "build",
"label": "tsc: build - tsconfig.json"
},
{
"label": "start MJExplorer",
"type": "npm",
"script": "start",
"path": "MJExplorer",
"isBackground": true,
"presentation": {
"focus": true,
"panel": "dedicated"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": ["relative", "${cwd}"],
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "Compiled |Failed to compile."
}
}
}
},
{
"label": "start Portal",
"type": "npm",
"script": "start",
"path": "abstracts/Portal",
"isBackground": true,
"presentation": {
"focus": true,
"panel": "dedicated"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": ["relative", "${cwd}"],
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "Application bundle generation complete.|Failed to compile."
}
}
}
}
]
}
214 changes: 214 additions & 0 deletions CodeGen/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
{
"newUserSetup": {
"UserName": "AmithNagarajan",
"FirstName": "Amith",
"LastName": "Nagarajan",
"Email": "[email protected]",
"Roles": [
"Developer",
"Integration",
"UI"
],
"IsComplete": false
},
"settings": [
{
"name": "mj_core_schema",
"value": "__mj"
},
{
"name": "skip_database_generation",
"value": false
}
],
"logging": {
"log": true,
"logFile": "codegen.output.txt",
"console": true
},
"newEntityDefaults": {
"TrackRecordChanges": true,
"AuditRecordAccess": false,
"AuditViewRuns": false,
"AllowAllRowsAPI": false,
"AllowCreateAPI": true,
"AllowUpdateAPI": true,
"AllowDeleteAPI": true,
"AllowUserSearchAPI": false,
"CascadeDeletes": false,
"UserViewMaxRows": 1000,
"AddToApplicationWithSchemaName": true,
"IncludeFirstNFieldsAsDefaultInView": 5,
"PermissionDefaults": {
"AutoAddPermissionsForNewEntities": true,
"Permissions": [
{
"RoleName": "UI",
"CanRead": true,
"CanCreate": false,
"CanUpdate": false,
"CanDelete": false
},
{
"RoleName": "Developer",
"CanRead": true,
"CanCreate": true,
"CanUpdate": true,
"CanDelete": false
},
{
"RoleName": "Integration",
"CanRead": true,
"CanCreate": true,
"CanUpdate": true,
"CanDelete": true
}
]
}
},
"newEntityRelationshipDefaults": {
"AutomaticallyCreateRelationships": true,
"CreateOneToManyRelationships": true
},
"newSchemaDefaults": {
"CreateNewApplicationWithSchemaName": true
},
"excludeSchemas": [
"sys",
"staging",
"__mj"
],
"excludeTables": [
{
"schema": "%",
"table": "sys%"
}
],
"customSQLScripts": [
{
"scriptFile": "../SQL Scripts/MJ_BASE_BEFORE_SQL.sql",
"when": "before-all"
}
],
"dbSchemaJSONOutput": {
"excludeEntities": [],
"excludeSchemas": [
"sys",
"staging",
"dbo"
],
"bundles": [
{
"name": "_Core_Apps",
"excludeSchemas": [
"__mj"
]
}
]
},
"advancedGeneration": {
"enableAdvancedGeneration": true,
"AIVendor": "openai",
"AIModel": "gpt-4-1106-preview",
"features": [
{
"name": "EntityNames",
"description": "Use AI to generate better entity names when creating new entities",
"enabled": false
},
{
"name": "DefaultInViewFields",
"description": "Use AI to determine which fields in an entity should be shown, by default, in a newly created User View for the entity. This is only used when creating new entities and when new fields are detected.",
"enabled": false
},
{
"name": "EntityDescriptions",
"description": "Use AI to generate descriptions for entities, only used when creating new entities",
"enabled": false
},
{
"name": "EntityFieldDescriptions",
"description": "Use AI to generate descriptions for fields, only used when new fields are detected",
"enabled": false
},
{
"name": "FormLayout",
"description": "Use AI to generate better layouts for forms. This includes using AI to determine the way to layout fields on each entity form. The field will still be laid out in the order they are defined in the entity, but the AI will determine the best way to layout the fields on the form. Since generated forms are regenerated every time you run this tool, it will be done every time you run the tool, including for existing entities and fields.",
"enabled": false
},
{
"name": "FormTabs",
"description": "Use AI to decide which entity relationships should have visible tabs and the best order to display those tabs. All relationships will be generated based on the Database Schema, but the EntityRelationship.DisplayInForm. The idea is that the AI will pick which of these tabs should be visible by default. In some cases an entity will have a large # of relationships and it isn't necessarily a good idea to display all of them. This feature only applies when an entity is created or new Entity Relationships are detected. This tool will not change existing EntityRelationship records.",
"enabled": false
}
]
},
"output": [
{
"type": "SQL",
"directory": "../SQL Scripts/generated",
"appendOutputCode": true
},
{
"type": "Angular",
"directory": "../MJExplorer/src/app/generated",
"options": [
{
"name": "maxComponentsPerModule",
"value": 20
}
]
},
{
"type": "GraphQLServer",
"directory": "../MJAPI/src/generated"
},
{
"type": "ActionSubclasses",
"directory": "../GeneratedActions/src/generated"
},
{
"type": "EntitySubclasses",
"directory": "../GeneratedEntities/src/generated"
},
{
"type": "DBSchemaJSON",
"directory": "../Schema Files"
}
],
"commands": [
{
"workingDirectory": "../GeneratedEntities",
"command": "npm",
"args": [
"run",
"build"
],
"when": "after"
},
{
"workingDirectory": "../GeneratedActions",
"command": "npm",
"args": [
"run",
"build"
],
"when": "after"
},
{
"workingDirectory": "../MJAPI",
"command": "npm",
"args": [
"start"
],
"timeout": 30000,
"when": "after"
}
],
"SQLOutput": {
"enabled": true,
"folderPath": "../../migrations/v2/",
"appendToFile": true,
"convertCoreSchemaToFlywayMigrationFile": true
}
}
Loading

0 comments on commit b31e0ce

Please sign in to comment.