diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722d5e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode diff --git a/README.md b/README.md index 58e20c4..d9f45dd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # osDFS-Chatbot A community-driven bot that aims to be as simple as possible to serve humans queries about osDFS. +![Image](https://user-images.githubusercontent.com/40069230/88557934-82dd8600-d048-11ea-865a-e5abf711a9eb.jpeg) diff --git a/intents.json b/intents.json deleted file mode 100644 index 5555900..0000000 --- a/intents.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "intents": [ - { - "tag": "greeting", - "patterns": [ - "Hi", - "How are you", - "Is anyone there?", - "Hello", - "Good day", - "Whats up" - ], - "responses": [ - "Hello!", - "Good to see you again!", - "Hi there, how can I help?", - "Hello from the osDFS team!", - "Hi - osDFS Team" - ], - "context_set": "" - }, - { - "tag": "goodbye", - "patterns": [ - "cya", - "See you later", - "Goodbye", - "I am Leaving", - "Have a Good day" - ], - "responses": [ - "Sad to see you go :(", - "Talk to you later", - "Goodbye!", - "Hope I was of help", - "Bye - osDFS Team" - ], - "context_set": "" - }, - { - "tag": "age", - "patterns": [ - "how old", - "how old are you", - "what is your age", - "age?" - ], - "responses": [ - "I am a computer program!", - "I was born at osDFS Labs!" - ], - "context_set": "" - }, - { - "tag": "name", - "patterns": [ - "what is your name", - "what should I call you", - "whats your name?" - ], - "responses": [ - "You can call me Os.", - "I'm Os!", - "I'm Os aka Os the Boss." - ], - "context_set": "" - }, - { - "tag": "osDFS", - "patterns": [ - "what does osDFS do?", - "what is osDFS?", - "explain osDFS?", - "aim of osDFS?" - ], - "responses": [ - "We are Open Source Digital Freedom Society. We are an off campus community that supports women & men that are interested in computer and information science and all tech things. We host tech talks, community events, and business leaders from all around the area on a weekly basis. Our goal is to create and inspire a strong community of women & men in technology fields. We aim to bring support, networking and mentoring to help women & men on your campus to find success in the classroom and in the office.", - "We A special interest group that supports women & men who study or are interested in Computer and Information Science." - ], - "context_set": "" - }, - { - "tag": "join", - "patterns": [ - "How to join osDFS?", - "What to do?", - "How to proceed?", - "How to get started?", - "Where do i go?", - "where is the website", - "how to start?", - "how to begin?" - ], - "responses": [ - "Join us here at - https://osdfs.netlify.app/", - "Be a part of osDFS - https://osdfs.netlify.app/", - "Become a member - https://osdfs.netlify.app/" - ], - "context_set": "" - }, - { - "tag": "projects", - "patterns": [ - "what projects?", - "what ideas?", - "how to contribute?", - "how to make a pr?", - "where to code?", - "latest projects", - "project ideas", - "what can i work on?" - ], - "responses": [ - "Pick a project that you like and start contributing - https://github.com/osDFS", - "Here are some of our latest projects - https://github.com/osDFS", - "Find our projects - https://github.com/osDFS" - ], - "context_set": "" - } - ] -} \ No newline at end of file diff --git a/osDFS Container/Actions/Dockerfile b/osDFS Container/Actions/Dockerfile new file mode 100644 index 0000000..789aa3b --- /dev/null +++ b/osDFS Container/Actions/Dockerfile @@ -0,0 +1,10 @@ +FROM rasa/rasa-sdk:latest + + # The Rasa SDK image runs as non-root user by default. Hence, you have to switch + # back to the `root` user if you want to install additional dependencies +USER root + +RUN pip3 install recognizers-text-suite + +# Switch back to a non-root user +USER 1001 \ No newline at end of file diff --git a/osDFS Container/Actions/__pycache__/actions.cpython-37.pyc b/osDFS Container/Actions/__pycache__/actions.cpython-37.pyc new file mode 100644 index 0000000..4b7577d Binary files /dev/null and b/osDFS Container/Actions/__pycache__/actions.cpython-37.pyc differ diff --git a/osDFS Container/Actions/actions.py b/osDFS Container/Actions/actions.py new file mode 100644 index 0000000..c826199 --- /dev/null +++ b/osDFS Container/Actions/actions.py @@ -0,0 +1,39 @@ +# This files contains your custom actions which can be used to run +# custom Python code. +# +# See this guide on how to implement these action: +# https://rasa.com/docs/rasa/core/actions/#custom-actions/ + + +# This is a simple example for a custom action which utters "Hello World!" + +from typing import Any, Text, Dict, List + +from rasa_sdk import Action, Tracker +from rasa_sdk.executor import CollectingDispatcher + + +# class ActionHelloWorld(Action): + +# def name(self) -> Text: +# return "action_hello_world" + +# def run(self, dispatcher: CollectingDispatcher, +# tracker: Tracker, +# domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: +# dispatcher.utter_message(text="hello world new message response here") + +# return [] + +class ActionHelloWorld(Action): + + def name(self) -> Text: + return "action_coding_response" + + def run(self, dispatcher: CollectingDispatcher, + tracker: Tracker, + domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: + print("Building chatbot for the rasa enjoy coding") + dispatcher.utter_message(text="hello world new message response here") + + return [] diff --git a/osDFS Container/FrontEnd osDFS/.DS_Store b/osDFS Container/FrontEnd osDFS/.DS_Store new file mode 100644 index 0000000..ec89917 Binary files /dev/null and b/osDFS Container/FrontEnd osDFS/.DS_Store differ diff --git a/osDFS Container/FrontEnd osDFS/.dockerignore b/osDFS Container/FrontEnd osDFS/.dockerignore new file mode 100644 index 0000000..d01eab5 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/.dockerignore @@ -0,0 +1,2 @@ +venv +README.md diff --git a/osDFS Container/FrontEnd osDFS/CNAME b/osDFS Container/FrontEnd osDFS/CNAME new file mode 100644 index 0000000..25c445f --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/CNAME @@ -0,0 +1 @@ +osdfs.in \ No newline at end of file diff --git a/osDFS Container/FrontEnd osDFS/Dockerfile b/osDFS Container/FrontEnd osDFS/Dockerfile new file mode 100644 index 0000000..72521a8 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/Dockerfile @@ -0,0 +1,13 @@ +# Base Images +FROM python:3 + +# Set the Working Dir +WORKDIR /usr/src/osDFS/FrontEnd + +# Copy the requirement file +COPY requirements.txt . + +# install the packages +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . diff --git a/osDFS Container/FrontEnd osDFS/README.md b/osDFS Container/FrontEnd osDFS/README.md new file mode 100644 index 0000000..8bfde98 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/README.md @@ -0,0 +1,4 @@ +# osDFS-V2 +[![Netlify Status](https://api.netlify.com/api/v1/badges/800db2b6-9311-4dd4-8c10-62c43e73cb9b/deploy-status)](https://app.netlify.com/sites/osdfs/deploys) + +It is the 2nd version of osDFS's webpage. diff --git a/osDFS Container/FrontEnd osDFS/__pycache__/app.cpython-38.pyc b/osDFS Container/FrontEnd osDFS/__pycache__/app.cpython-38.pyc new file mode 100644 index 0000000..6dd75d7 Binary files /dev/null and b/osDFS Container/FrontEnd osDFS/__pycache__/app.cpython-38.pyc differ diff --git a/osDFS Container/FrontEnd osDFS/__pycache__/wsqi.cpython-38.pyc b/osDFS Container/FrontEnd osDFS/__pycache__/wsqi.cpython-38.pyc new file mode 100644 index 0000000..feb1eb7 Binary files /dev/null and b/osDFS Container/FrontEnd osDFS/__pycache__/wsqi.cpython-38.pyc differ diff --git a/osDFS Container/FrontEnd osDFS/app.py b/osDFS Container/FrontEnd osDFS/app.py new file mode 100644 index 0000000..9968022 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/app.py @@ -0,0 +1,50 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def home(): + return render_template("index.html") + +@app.route("/index") +def index(): + return render_template("index.html") + +@app.route("/community") +def community(): + return render_template("community.html") + +@app.route("/ccp") +def cpp(): + return render_template("ccp.html") + +@app.route("/partners") +def partners(): + return render_template("partners.html") + +@app.route("/events") +def events(): + return render_template("events.html") + +@app.route("/opportunities") +def opportunities(): + return render_template("oppertunities.html") + +@app.route("/gallery") +def gallery(): + return render_template("gallery.html") + +@app.route("/blog") +def blog(): + return render_template("blog.html") + +@app.route("/contact") +def contact(): + return render_template("contact.html") + +@app.route("/test") +def test(): + return render_template("child.html") + +if __name__ == "__main__" : + app.run(host="0.0.0.0") \ No newline at end of file diff --git a/osDFS Container/FrontEnd osDFS/prepros-6.config b/osDFS Container/FrontEnd osDFS/prepros-6.config new file mode 100644 index 0000000..ce8b8b2 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/prepros-6.config @@ -0,0 +1,543 @@ +{ + "name": "aspiration", + "firstRun": false, + "exportConfig": true, + "fileConfigs": [], + "fileTree": { + "expandedDirs": [], + "hideSystemFiles": true, + "systemFiles": [ + ".*", + "desktop.ini", + "prepros.config", + "$RECYCLE.BIN", + "prepros.cfg", + "prepros-6.config", + "Prepros Export" + ], + "hideUnwatchedFiles": false + }, + "imports": [ + { + "path": "scss/style.scss", + "imports": [ + "scss/bootstrap/bootstrap.scss", + "scss/bootstrap/_variables.scss", + "scss/bootstrap/_functions.scss", + "scss/bootstrap/_mixins.scss", + "scss/bootstrap/_root.scss", + "scss/bootstrap/_reboot.scss", + "scss/bootstrap/_type.scss", + "scss/bootstrap/_images.scss", + "scss/bootstrap/_code.scss", + "scss/bootstrap/_grid.scss", + "scss/bootstrap/_tables.scss", + "scss/bootstrap/_forms.scss", + "scss/bootstrap/_buttons.scss", + "scss/bootstrap/_transitions.scss", + "scss/bootstrap/_dropdown.scss", + "scss/bootstrap/_button-group.scss", + "scss/bootstrap/_input-group.scss", + "scss/bootstrap/_custom-forms.scss", + "scss/bootstrap/_nav.scss", + "scss/bootstrap/_navbar.scss", + "scss/bootstrap/_card.scss", + "scss/bootstrap/_breadcrumb.scss", + "scss/bootstrap/_pagination.scss", + "scss/bootstrap/_badge.scss", + "scss/bootstrap/_jumbotron.scss", + "scss/bootstrap/_alert.scss", + "scss/bootstrap/_progress.scss", + "scss/bootstrap/_media.scss", + "scss/bootstrap/_list-group.scss", + "scss/bootstrap/_close.scss", + "scss/bootstrap/_toasts.scss", + "scss/bootstrap/_modal.scss", + "scss/bootstrap/_tooltip.scss", + "scss/bootstrap/_popover.scss", + "scss/bootstrap/_carousel.scss", + "scss/bootstrap/_spinners.scss", + "scss/bootstrap/_utilities.scss", + "scss/bootstrap/_print.scss", + "scss/bootstrap/vendor/_rfs.scss", + "scss/bootstrap/mixins/_deprecate.scss", + "scss/bootstrap/mixins/_breakpoints.scss", + "scss/bootstrap/mixins/_hover.scss", + "scss/bootstrap/mixins/_image.scss", + "scss/bootstrap/mixins/_badge.scss", + "scss/bootstrap/mixins/_resize.scss", + "scss/bootstrap/mixins/_screen-reader.scss", + "scss/bootstrap/mixins/_size.scss", + "scss/bootstrap/mixins/_reset-text.scss", + "scss/bootstrap/mixins/_text-emphasis.scss", + "scss/bootstrap/mixins/_text-hide.scss", + "scss/bootstrap/mixins/_text-truncate.scss", + "scss/bootstrap/mixins/_visibility.scss", + "scss/bootstrap/mixins/_alert.scss", + "scss/bootstrap/mixins/_buttons.scss", + "scss/bootstrap/mixins/_caret.scss", + "scss/bootstrap/mixins/_pagination.scss", + "scss/bootstrap/mixins/_lists.scss", + "scss/bootstrap/mixins/_list-group.scss", + "scss/bootstrap/mixins/_nav-divider.scss", + "scss/bootstrap/mixins/_forms.scss", + "scss/bootstrap/mixins/_table-row.scss", + "scss/bootstrap/mixins/_background-variant.scss", + "scss/bootstrap/mixins/_border-radius.scss", + "scss/bootstrap/mixins/_box-shadow.scss", + "scss/bootstrap/mixins/_gradients.scss", + "scss/bootstrap/mixins/_transition.scss", + "scss/bootstrap/mixins/_clearfix.scss", + "scss/bootstrap/mixins/_grid-framework.scss", + "scss/bootstrap/mixins/_grid.scss", + "scss/bootstrap/mixins/_float.scss", + "scss/bootstrap/utilities/_align.scss", + "scss/bootstrap/utilities/_background.scss", + "scss/bootstrap/utilities/_borders.scss", + "scss/bootstrap/utilities/_clearfix.scss", + "scss/bootstrap/utilities/_display.scss", + "scss/bootstrap/utilities/_embed.scss", + "scss/bootstrap/utilities/_flex.scss", + "scss/bootstrap/utilities/_float.scss", + "scss/bootstrap/utilities/_overflow.scss", + "scss/bootstrap/utilities/_position.scss", + "scss/bootstrap/utilities/_screenreaders.scss", + "scss/bootstrap/utilities/_shadows.scss", + "scss/bootstrap/utilities/_sizing.scss", + "scss/bootstrap/utilities/_stretched-link.scss", + "scss/bootstrap/utilities/_spacing.scss", + "scss/bootstrap/utilities/_text.scss", + "scss/bootstrap/utilities/_visibility.scss" + ] + }, + { + "path": "scss/bootstrap/_mixins.scss", + "imports": [ + "scss/bootstrap/vendor/_rfs.scss", + "scss/bootstrap/mixins/_deprecate.scss", + "scss/bootstrap/mixins/_breakpoints.scss", + "scss/bootstrap/mixins/_hover.scss", + "scss/bootstrap/mixins/_image.scss", + "scss/bootstrap/mixins/_badge.scss", + "scss/bootstrap/mixins/_resize.scss", + "scss/bootstrap/mixins/_screen-reader.scss", + "scss/bootstrap/mixins/_size.scss", + "scss/bootstrap/mixins/_reset-text.scss", + "scss/bootstrap/mixins/_text-emphasis.scss", + "scss/bootstrap/mixins/_text-hide.scss", + "scss/bootstrap/mixins/_text-truncate.scss", + "scss/bootstrap/mixins/_visibility.scss", + "scss/bootstrap/mixins/_alert.scss", + "scss/bootstrap/mixins/_buttons.scss", + "scss/bootstrap/mixins/_caret.scss", + "scss/bootstrap/mixins/_pagination.scss", + "scss/bootstrap/mixins/_lists.scss", + "scss/bootstrap/mixins/_list-group.scss", + "scss/bootstrap/mixins/_nav-divider.scss", + "scss/bootstrap/mixins/_forms.scss", + "scss/bootstrap/mixins/_table-row.scss", + "scss/bootstrap/mixins/_background-variant.scss", + "scss/bootstrap/mixins/_border-radius.scss", + "scss/bootstrap/mixins/_box-shadow.scss", + "scss/bootstrap/mixins/_gradients.scss", + "scss/bootstrap/mixins/_transition.scss", + "scss/bootstrap/mixins/_clearfix.scss", + "scss/bootstrap/mixins/_grid-framework.scss", + "scss/bootstrap/mixins/_grid.scss", + "scss/bootstrap/mixins/_float.scss" + ] + }, + { + "path": "scss/bootstrap/_utilities.scss", + "imports": [ + "scss/bootstrap/utilities/_align.scss", + "scss/bootstrap/utilities/_background.scss", + "scss/bootstrap/utilities/_borders.scss", + "scss/bootstrap/utilities/_clearfix.scss", + "scss/bootstrap/utilities/_display.scss", + "scss/bootstrap/utilities/_embed.scss", + "scss/bootstrap/utilities/_flex.scss", + "scss/bootstrap/utilities/_float.scss", + "scss/bootstrap/utilities/_overflow.scss", + "scss/bootstrap/utilities/_position.scss", + "scss/bootstrap/utilities/_screenreaders.scss", + "scss/bootstrap/utilities/_shadows.scss", + "scss/bootstrap/utilities/_sizing.scss", + "scss/bootstrap/utilities/_stretched-link.scss", + "scss/bootstrap/utilities/_spacing.scss", + "scss/bootstrap/utilities/_text.scss", + "scss/bootstrap/utilities/_visibility.scss" + ] + }, + { + "path": "scss/bootstrap/bootstrap-grid.scss", + "imports": [ + "scss/bootstrap/_functions.scss", + "scss/bootstrap/_variables.scss", + "scss/bootstrap/mixins/_breakpoints.scss", + "scss/bootstrap/mixins/_grid-framework.scss", + "scss/bootstrap/mixins/_grid.scss", + "scss/bootstrap/_grid.scss", + "scss/bootstrap/utilities/_display.scss", + "scss/bootstrap/utilities/_flex.scss", + "scss/bootstrap/utilities/_spacing.scss" + ] + }, + { + "path": "scss/bootstrap/bootstrap-reboot.scss", + "imports": [ + "scss/bootstrap/_functions.scss", + "scss/bootstrap/_variables.scss", + "scss/bootstrap/_mixins.scss", + "scss/bootstrap/_reboot.scss", + "scss/bootstrap/vendor/_rfs.scss", + "scss/bootstrap/mixins/_deprecate.scss", + "scss/bootstrap/mixins/_breakpoints.scss", + "scss/bootstrap/mixins/_hover.scss", + "scss/bootstrap/mixins/_image.scss", + "scss/bootstrap/mixins/_badge.scss", + "scss/bootstrap/mixins/_resize.scss", + "scss/bootstrap/mixins/_screen-reader.scss", + "scss/bootstrap/mixins/_size.scss", + "scss/bootstrap/mixins/_reset-text.scss", + "scss/bootstrap/mixins/_text-emphasis.scss", + "scss/bootstrap/mixins/_text-hide.scss", + "scss/bootstrap/mixins/_text-truncate.scss", + "scss/bootstrap/mixins/_visibility.scss", + "scss/bootstrap/mixins/_alert.scss", + "scss/bootstrap/mixins/_buttons.scss", + "scss/bootstrap/mixins/_caret.scss", + "scss/bootstrap/mixins/_pagination.scss", + "scss/bootstrap/mixins/_lists.scss", + "scss/bootstrap/mixins/_list-group.scss", + "scss/bootstrap/mixins/_nav-divider.scss", + "scss/bootstrap/mixins/_forms.scss", + "scss/bootstrap/mixins/_table-row.scss", + "scss/bootstrap/mixins/_background-variant.scss", + "scss/bootstrap/mixins/_border-radius.scss", + "scss/bootstrap/mixins/_box-shadow.scss", + "scss/bootstrap/mixins/_gradients.scss", + "scss/bootstrap/mixins/_transition.scss", + "scss/bootstrap/mixins/_clearfix.scss", + "scss/bootstrap/mixins/_grid-framework.scss", + "scss/bootstrap/mixins/_grid.scss", + "scss/bootstrap/mixins/_float.scss" + ] + }, + { + "path": "scss/bootstrap/bootstrap.scss", + "imports": [ + "scss/bootstrap/_functions.scss", + "scss/bootstrap/_variables.scss", + "scss/bootstrap/_mixins.scss", + "scss/bootstrap/_root.scss", + "scss/bootstrap/_reboot.scss", + "scss/bootstrap/_type.scss", + "scss/bootstrap/_images.scss", + "scss/bootstrap/_code.scss", + "scss/bootstrap/_grid.scss", + "scss/bootstrap/_tables.scss", + "scss/bootstrap/_forms.scss", + "scss/bootstrap/_buttons.scss", + "scss/bootstrap/_transitions.scss", + "scss/bootstrap/_dropdown.scss", + "scss/bootstrap/_button-group.scss", + "scss/bootstrap/_input-group.scss", + "scss/bootstrap/_custom-forms.scss", + "scss/bootstrap/_nav.scss", + "scss/bootstrap/_navbar.scss", + "scss/bootstrap/_card.scss", + "scss/bootstrap/_breadcrumb.scss", + "scss/bootstrap/_pagination.scss", + "scss/bootstrap/_badge.scss", + "scss/bootstrap/_jumbotron.scss", + "scss/bootstrap/_alert.scss", + "scss/bootstrap/_progress.scss", + "scss/bootstrap/_media.scss", + "scss/bootstrap/_list-group.scss", + "scss/bootstrap/_close.scss", + "scss/bootstrap/_toasts.scss", + "scss/bootstrap/_modal.scss", + "scss/bootstrap/_tooltip.scss", + "scss/bootstrap/_popover.scss", + "scss/bootstrap/_carousel.scss", + "scss/bootstrap/_spinners.scss", + "scss/bootstrap/_utilities.scss", + "scss/bootstrap/_print.scss", + "scss/bootstrap/vendor/_rfs.scss", + "scss/bootstrap/mixins/_deprecate.scss", + "scss/bootstrap/mixins/_breakpoints.scss", + "scss/bootstrap/mixins/_hover.scss", + "scss/bootstrap/mixins/_image.scss", + "scss/bootstrap/mixins/_badge.scss", + "scss/bootstrap/mixins/_resize.scss", + "scss/bootstrap/mixins/_screen-reader.scss", + "scss/bootstrap/mixins/_size.scss", + "scss/bootstrap/mixins/_reset-text.scss", + "scss/bootstrap/mixins/_text-emphasis.scss", + "scss/bootstrap/mixins/_text-hide.scss", + "scss/bootstrap/mixins/_text-truncate.scss", + "scss/bootstrap/mixins/_visibility.scss", + "scss/bootstrap/mixins/_alert.scss", + "scss/bootstrap/mixins/_buttons.scss", + "scss/bootstrap/mixins/_caret.scss", + "scss/bootstrap/mixins/_pagination.scss", + "scss/bootstrap/mixins/_lists.scss", + "scss/bootstrap/mixins/_list-group.scss", + "scss/bootstrap/mixins/_nav-divider.scss", + "scss/bootstrap/mixins/_forms.scss", + "scss/bootstrap/mixins/_table-row.scss", + "scss/bootstrap/mixins/_background-variant.scss", + "scss/bootstrap/mixins/_border-radius.scss", + "scss/bootstrap/mixins/_box-shadow.scss", + "scss/bootstrap/mixins/_gradients.scss", + "scss/bootstrap/mixins/_transition.scss", + "scss/bootstrap/mixins/_clearfix.scss", + "scss/bootstrap/mixins/_grid-framework.scss", + "scss/bootstrap/mixins/_grid.scss", + "scss/bootstrap/mixins/_float.scss", + "scss/bootstrap/utilities/_align.scss", + "scss/bootstrap/utilities/_background.scss", + "scss/bootstrap/utilities/_borders.scss", + "scss/bootstrap/utilities/_clearfix.scss", + "scss/bootstrap/utilities/_display.scss", + "scss/bootstrap/utilities/_embed.scss", + "scss/bootstrap/utilities/_flex.scss", + "scss/bootstrap/utilities/_float.scss", + "scss/bootstrap/utilities/_overflow.scss", + "scss/bootstrap/utilities/_position.scss", + "scss/bootstrap/utilities/_screenreaders.scss", + "scss/bootstrap/utilities/_shadows.scss", + "scss/bootstrap/utilities/_sizing.scss", + "scss/bootstrap/utilities/_stretched-link.scss", + "scss/bootstrap/utilities/_spacing.scss", + "scss/bootstrap/utilities/_text.scss", + "scss/bootstrap/utilities/_visibility.scss" + ] + } + ], + "projectView": { + "selectedView": "file-tree" + }, + "fileWatcher": { + "enabled": true, + "watchedExtensions": [ + "less", + "sass", + "scss", + "styl", + "md", + "markdown", + "coffee", + "js", + "jade", + "haml", + "slim", + "ls", + "kit", + "png", + "jpg", + "jpeg", + "ts", + "pug", + "css", + "html", + "htm", + "php" + ] + }, + "pathFilters": [ + "node_modules", + ".*", + "bower_components", + "prepros.config", + "Prepros Export", + "prepros-6.config", + "prepros.cfg", + "wp-admin", + "wp-includes" + ], + "server": { + "port": 8023, + "assignNewPortAutomatically": true, + "enable": true, + "proxy": { + "enable": false, + "url": "" + } + }, + "browser-sync": { + "enable": false, + "clicks": true, + "forms": true, + "scroll": true + }, + "live-reload": { + "enable": true, + "animate": true, + "delay": 0 + }, + "ftp-deploy": { + "connectionType": "ftp", + "remotePath": "", + "uploadTimeout": 20000, + "uploadOnChange": false, + "ftp": { + "secure": false, + "keepAlive": true, + "host": "", + "port": 21, + "user": "", + "password": "" + }, + "sftp": { + "host": "", + "port": 22, + "usePrivateKey": false, + "username": "", + "password": "", + "privateKey": "", + "passphrase": "" + }, + "pathFilters": [ + "config.rb", + "prepros.config", + "prepros-6.config", + "node_modules", + "Prepros Export", + ".git", + ".idea", + ".sass-cache", + ".hg", + ".svn", + ".cache", + ".DS_Store", + "*.sass", + "*.scss", + "*.less", + "*.pug", + "*.jade", + "*.styl", + "*.haml", + "*.slim", + "*.coffee", + "*.ls", + "*.kit", + "*.ts" + ], + "history": [] + }, + "file-type-sass": "{\"compilers\":[\"node-sass\",\"autoprefixer\",\"minify-css\"]}", + "file-type-less": "{\"compilers\":[\"less\",\"autoprefixer\",\"minify-css\"]}", + "autoprefixer": { + "browsers": "last 5 versions" + }, + "file-type-pug": "{\"compilers\":[\"pug\"]}", + "file-type-css": "{\"compilers\":[\"autoprefixer\",\"cssnext\",\"minify-css\"]}", + "file-type-javascript": "{\"compilers\":[\"concat-js\",\"babel\",\"uglify-js\"]}", + "file-type-stylus": "{\"compilers\":[\"stylus\",\"autoprefixer\",\"minify-css\"]}", + "file-type-markdown": "{\"compilers\":[\"markdown\"]}", + "file-type-haml": "{\"compilers\":[\"haml\"]}", + "file-type-slim": "{\"compilers\":[\"slim\"]}", + "file-type-coffee-script": "{\"compilers\":[\"coffee-script\",\"uglify-js\"]}", + "file-type-livescript": "{\"compilers\":[\"livescript\",\"uglify-js\"]}", + "file-type-kit": "{\"compilers\":[\"kit\"]}", + "uglify-js": { + "ie8": false, + "compress": { + "sequences": true, + "properties": true, + "dead_code": true, + "drop_debugger": true, + "unsafe": false, + "unsafe_comps": false, + "unsafe_math": false, + "unsafe_proto": false, + "unsafe_regexp": false, + "conditionals": true, + "comparisons": true, + "evaluate": true, + "booleans": true, + "loops": true, + "unused": true, + "toplevel": false, + "top_retain": "", + "hoist_funs": true, + "hoist_vars": false, + "if_return": true, + "join_vars": true, + "collapse_vars": true, + "reduce_vars": true, + "warnings": true, + "negate_iife": true, + "pure_getters": false, + "pure_funcs": [], + "drop_console": false, + "expression": false, + "keep_fargs": true, + "keep_fnames": false, + "passes": 1, + "keep_infinity": false, + "side_effects": true, + "global_defs": [] + }, + "output": { + "ascii_only": false, + "beautify": false, + "comments": "", + "indent_level": 4, + "indent_start": 0, + "inline_script": false, + "keep_quoted_props": false, + "max_line_len": false, + "preamble": "", + "preserve_line": false, + "quote_keys": false, + "quote_style": 0, + "semicolons": true, + "shebang": true, + "width": 80 + } + }, + "cssnext": { + "customProperties": true, + "applyRule": true, + "calc": false, + "nesting": true, + "customMedia": true, + "mediaQueriesRange": true, + "customSelectors": true, + "attributeCaseInsensitive": true, + "colorRebeccapurple": true, + "colorHwb": true, + "colorGray": true, + "colorHexAlpha": true, + "colorFunction": true, + "fontVariant": true, + "filter": true, + "initial": true, + "rem": true, + "pseudoElements": true, + "pseudoClassMatches": true, + "pseudoClassNot": true, + "pseudoClassAnyLink": true, + "colorRgba": true, + "overflowWrap": true + }, + "file-type-typescript": "{\"compilers\":[\"typescript\",\"uglify-js\"]}", + "babel": { + "useBabelRc": true, + "presets": { + "babel-preset-es2015": true + }, + "plugins": { + "babel-plugin-syntax-jsx": true, + "babel-plugin-transform-react-jsx": true, + "babel-plugin-transform-async-to-generator": true, + "babel-plugin-transform-class-properties": true, + "babel-plugin-transform-object-rest-spread": true + } + }, + "file-type-png": "{\"compilers\":[\"png\"]}", + "file-type-jpg": "{\"compilers\":[\"jpg\"]}" +} \ No newline at end of file diff --git a/osDFS Container/FrontEnd osDFS/requirements.txt b/osDFS Container/FrontEnd osDFS/requirements.txt new file mode 100644 index 0000000..679ab1d --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/requirements.txt @@ -0,0 +1,2 @@ +Flask==1.1.2 +gunicorn==20.0.4 \ No newline at end of file diff --git a/osDFS Container/FrontEnd osDFS/static/blog/blog-single.html b/osDFS Container/FrontEnd osDFS/static/blog/blog-single.html new file mode 100644 index 0000000..73ad804 --- /dev/null +++ b/osDFS Container/FrontEnd osDFS/static/blog/blog-single.html @@ -0,0 +1,216 @@ + + + + OSDFS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+
+

Blog Details

+ +
+
+
+
+ +
+
+
+
+

Fix npm vulnerabilities with yarn

+

Sometimes we get security alerts on GitHub because our project’s npm packages have security issues. With npm we can use npm audit fix to update our packages. But if you have used yarn, then yarn also has a command for auditing packages: yarn audit This command shows a list of vulnerable packages. But there is no yarn audit --fix ! So, as of now, it appears that there is no yarn audit --fix. So I am trying to figure out how to go about fixing my npm security bugs yarn audit errors. After trying yarn upgrade, it has fixed some of the errors in my npm packages, but there are still several remaining. I have tried a yarn add @latest for the remaining high vulnerabilities, but it upgrades the version in our package.json, when I think the issues is coming from a dependency of a package that I am using. Here is an example of some of my remaining errors:

+

+ + + + + +

+

Here is an answer I found: + + The solution to this problem in yarn is called selective version resolution which is basically defining resolutions for the transitive dependencies in the package.json. + The transitive dependencies are the dependencies of dependencies. + +

{ + "resolutions": { "**/**/lodash": "^4.17.12" } + }

p + +So here even if the lodash isn’t a direct dependency of your package, the dependent package in your package uses the version defined in the resolutions. Specific resolutions can also be provided. You can check the yarn documentation about selective dependency resolutions.

+ + + +
+
+
+ + +