From 56a1b2ca9217b9e047bdbd1b4ca415671f397c70 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Mon, 25 Dec 2023 12:41:09 -0300 Subject: [PATCH 1/4] [Feature] Including in Danix Vlang support --- danix/main.py | 5 +++-- danix/templates.py | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/danix/main.py b/danix/main.py index 2c9dfac..c685ae7 100755 --- a/danix/main.py +++ b/danix/main.py @@ -27,7 +27,7 @@ usages.add_argument("-sc", "--snapshotcreate", help="Create snapshot", requ usages.add_argument("-sb", "--snapshotback" , help="Back snapshot", required=False) usages.add_argument("-c", "--copy" , help="Copy files and directories", required=False) -usages.add_argument("-o", "--option", choices=["clike", "java", "python", "ruby", "lua", "go", "ada", "dotnet"], required=False) +usages.add_argument("-o", "--option", choices=["clike", "java", "python", "ruby", "lua", "go", "ada", "dotnet", "v"], required=False) args = parser.parse_args() @@ -39,7 +39,8 @@ languanges_and_softwares = { "lua" : Languanges.Lua(), "go" : Languanges.Go(), "ada" : Languanges.Ada(), - "dotnet" : Languanges.Dotnet() + "dotnet" : Languanges.Dotnet(), + "v" : Languanges.VLang() } if check_system_configuration(): diff --git a/danix/templates.py b/danix/templates.py index b3c82ba..fbff447 100644 --- a/danix/templates.py +++ b/danix/templates.py @@ -92,6 +92,14 @@ class Template(): return Template.essentials_menu() + Template.languange_menu(packages) class Languanges(): + + class VLang(): + packages = ["v"] + config_commands = [] + + def install(self, environment_name, template): + Template.install(self.packages, environment_name, self.config_commands, template) + class Python(): packages = ["python3 py3-pip", "python3"] From 176efae1b2c3783b7faa10ec4293fd0f1b16d062 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Mon, 25 Dec 2023 18:47:00 -0300 Subject: [PATCH 2/4] Removing .obsidian file --- .gitignore | 1 + .obsidian/app.json | 1 - .obsidian/appearance.json | 3 - .obsidian/core-plugins-migration.json | 29 ----- .obsidian/core-plugins.json | 20 --- .obsidian/hotkeys.json | 1 - .obsidian/workspace.json | 175 -------------------------- 7 files changed, 1 insertion(+), 229 deletions(-) delete mode 100644 .obsidian/app.json delete mode 100644 .obsidian/appearance.json delete mode 100644 .obsidian/core-plugins-migration.json delete mode 100644 .obsidian/core-plugins.json delete mode 100644 .obsidian/hotkeys.json delete mode 100644 .obsidian/workspace.json diff --git a/.gitignore b/.gitignore index 68bc17f..a36488c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ __pycache__/ # C extensions *.so +.obsidian # Distribution / packaging .Python build/ diff --git a/.obsidian/app.json b/.obsidian/app.json deleted file mode 100644 index 9e26dfe..0000000 --- a/.obsidian/app.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json deleted file mode 100644 index c8c365d..0000000 --- a/.obsidian/appearance.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "accentColor": "" -} \ No newline at end of file diff --git a/.obsidian/core-plugins-migration.json b/.obsidian/core-plugins-migration.json deleted file mode 100644 index 5c13490..0000000 --- a/.obsidian/core-plugins-migration.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "file-explorer": true, - "global-search": true, - "switcher": true, - "graph": true, - "backlink": true, - "canvas": true, - "outgoing-link": true, - "tag-pane": true, - "page-preview": true, - "daily-notes": true, - "templates": true, - "note-composer": true, - "command-palette": true, - "slash-command": false, - "editor-status": true, - "bookmarks": true, - "markdown-importer": false, - "zk-prefixer": false, - "random-note": false, - "outline": true, - "word-count": true, - "slides": false, - "audio-recorder": false, - "workspaces": false, - "file-recovery": true, - "publish": false, - "sync": false -} \ No newline at end of file diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json deleted file mode 100644 index 9405bfd..0000000 --- a/.obsidian/core-plugins.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - "file-explorer", - "global-search", - "switcher", - "graph", - "backlink", - "canvas", - "outgoing-link", - "tag-pane", - "page-preview", - "daily-notes", - "templates", - "note-composer", - "command-palette", - "editor-status", - "bookmarks", - "outline", - "word-count", - "file-recovery" -] \ No newline at end of file diff --git a/.obsidian/hotkeys.json b/.obsidian/hotkeys.json deleted file mode 100644 index 9e26dfe..0000000 --- a/.obsidian/hotkeys.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json deleted file mode 100644 index 18e5f5e..0000000 --- a/.obsidian/workspace.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "main": { - "id": "683db9948478d0f5", - "type": "split", - "children": [ - { - "id": "a905c00f12ba46a8", - "type": "tabs", - "children": [ - { - "id": "9dc0c2825057834f", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "README.md", - "mode": "source", - "source": false - } - } - } - ] - } - ], - "direction": "vertical" - }, - "left": { - "id": "7e868bf1b448074e", - "type": "split", - "children": [ - { - "id": "8fca1960ef31b421", - "type": "tabs", - "children": [ - { - "id": "25fbe0fcd9c25fd0", - "type": "leaf", - "state": { - "type": "file-explorer", - "state": { - "sortOrder": "alphabetical" - } - } - }, - { - "id": "dff4013cf8dfedc3", - "type": "leaf", - "state": { - "type": "search", - "state": { - "query": "", - "matchingCase": false, - "explainSearch": false, - "collapseAll": false, - "extraContext": false, - "sortOrder": "alphabetical" - } - } - }, - { - "id": "83bfd13d38d5b76d", - "type": "leaf", - "state": { - "type": "bookmarks", - "state": {} - } - } - ] - } - ], - "direction": "horizontal", - "width": 300 - }, - "right": { - "id": "d0b0379d5ff97957", - "type": "split", - "children": [ - { - "id": "2f341c12d53e65aa", - "type": "tabs", - "children": [ - { - "id": "b32b580e05d21b5c", - "type": "leaf", - "state": { - "type": "backlink", - "state": { - "file": "README.md", - "collapseAll": false, - "extraContext": false, - "sortOrder": "alphabetical", - "showSearch": false, - "searchQuery": "", - "backlinkCollapsed": false, - "unlinkedCollapsed": true - } - } - }, - { - "id": "bbfc208669b9169d", - "type": "leaf", - "state": { - "type": "outgoing-link", - "state": { - "file": "README.md", - "linksCollapsed": false, - "unlinkedCollapsed": true - } - } - }, - { - "id": "621cfddeb8f85c0a", - "type": "leaf", - "state": { - "type": "tag", - "state": { - "sortOrder": "frequency", - "useHierarchy": true - } - } - }, - { - "id": "4d5cce8fb3df8ab2", - "type": "leaf", - "state": { - "type": "outline", - "state": { - "file": "README.md" - } - } - } - ] - } - ], - "direction": "horizontal", - "width": 300, - "collapsed": true - }, - "left-ribbon": { - "hiddenItems": { - "switcher:Open quick switcher": false, - "graph:Open graph view": false, - "canvas:Create new canvas": false, - "daily-notes:Open today's daily note": false, - "templates:Insert template": false, - "command-palette:Open command palette": false - } - }, - "active": "9dc0c2825057834f", - "lastOpenFiles": [ - "img/logo.png", - "img/img_vi.png", - "img/img_v.png", - "img/img_iv.png", - "img/img_iii.png", - "img/img_ii.png", - "img/img_i.png", - "img", - "danix/wsgi.py", - "danix/utils.py", - "danix/templates.py", - "danix/settings.py", - "danix/requirements.txt", - "danix/manage.py", - "danix/main.py", - "danix/db/models.py", - "danix/db/migrations/__init__.py", - "Pasted image 20230516121302.png", - "README.md", - "img/img.vi.png", - "Pasted image 20230516120949.png", - "example.png.md", - "logo.png.md" - ] -} \ No newline at end of file From 74102b08033b53433a494feafe1bbebdf00f5321 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Mon, 25 Dec 2023 19:56:47 -0300 Subject: [PATCH 3/4] Insert .github to Continuous Integration on project --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..72283b9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Danix File System + +on: + push: + - dev + + pull_request: + - main + +jobs: + continuous-integration: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Test + - uses: actions/setup-python@v2 + - with: + python-version: 3.11 + - name: Install Requirements + run: | + pip install -r requirements.txt + - name: Creating Database + run: | + python manage.py makemigrations + python manage.py migrate + - name: Run Danix + run: | + # Run commnad + # Test From 8f1f0509465aadc503acb513fcf64ab1d3cbc3b3 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Mon, 25 Dec 2023 20:03:56 -0300 Subject: [PATCH 4/4] [FIX] test.yml file --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72283b9..b0f5248 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,5 +26,5 @@ jobs: python manage.py migrate - name: Run Danix run: | - # Run commnad - # Test + python danix.py +