Skip to content

Commit

Permalink
Merge pull request #101 from MFM-347/dev
Browse files Browse the repository at this point in the history
Added prettier, and update README #98
  • Loading branch information
Arsenic-ATG authored Feb 15, 2025
2 parents 51145cf + ddba442 commit fae68a7
Show file tree
Hide file tree
Showing 57 changed files with 2,076 additions and 1,608 deletions.
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ root = true
charset = utf-8
indent_style = tab
indent_size = 2
tab_width = 1
insert_final_newline = true
tab_width = 2
trim_trailing_whitespace = true
insert_final_newline = true
insert_final_newline = true
[*]
32 changes: 16 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-unused-vars" :"off",
"no-constant-condition":"off",
"semi":"error",
"quotes": ["error", "double"]
}
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-unused-vars": "off",
"no-constant-condition": "off",
"semi": "error",
"quotes": ["error", "double"]
}
}
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/automation-idea.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Share a new Idea about an Automation
title: ''
labels: Idea, enhancement
assignees: ''

---

## Idea 💡: -
Expand Down
18 changes: 10 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ about: Ask question about certain project or this repository in general
title: ''
labels: question
assignees: ''

---

{ add you question body here }

### Link to the project
### Link to the project

{ if your question is about a specific project then attach it's link here , **leave this section if it is a general question about the repository**}
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
## Assigned Issue Number ? { if does not exist then create one }

#007

## Language Opted ?

C/C++/Python/Java/...

## Number of files added or updated ?

1/2/3/4/...

### Checklist
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- uses: EddieHubCommunity/gh-action-community/src/welcome@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: '<h1>It''s great having you contribute to this project</h1> Welcome to our project :nerd_face:'
pr-message: '<h1>It''s great having you contribute to this project</h1> Welcome to the project :nerd_face:'
issue-message: "<h1>It's great having you contribute to this project</h1> Welcome to our project :nerd_face:"
pr-message: "<h1>It's great having you contribute to this project</h1> Welcome to the project :nerd_face:"
footer: 'Our developers will respond you as soon as possible 🤓 . Any questions let us know.'

23 changes: 11 additions & 12 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: lint javascript projects

on:
pull_request:
branches: [ master]

pull_request:
branches: [master]

jobs:
lint_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.15.0
- run: npm ci
- run: npm run lint
lint_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.15.0
- run: npm ci
- run: npm run lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/**/**/*.DS_Store
/**/**/node_modules
/**/**/.env
/**/**/*.env
/**/**/*.env
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100
}
25 changes: 14 additions & 11 deletions .readmeTemplates/Javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,40 @@ Q How will this help others with completing the task?
Q What were the steps before using this automation and what are the steps after?
--->

### Things you will need to get it running: 📈

### Things you will need to get it running: 📈
-
-
-


### Additional packages: 📝

<!---Only add the names of packages which have to be installed externally!--->

- _package names_

#### How do I install additional packages? 🤨

- Make sure you have **nodejs** installed on your system. If you haven't yet go to [nodejs.org](https://nodejs.org "go to nodejs.org")
- Make sure you have **nodejs** installed on your system. If you haven't yet go to [nodejs.org](https://nodejs.org 'go to nodejs.org')

- If you want to install dependecies with **npm**
- Check for **yarn.lock**. If it is in the root directory then DELETE **yarn.lock**.
- Now, run `npm install`. This will install all of the dependencies.

- If you want to install dependencies with **yarn**.
- Check for **package-lock.json**. If it is in the root directory then DELETE **package-lock.json**.
- Now, run `yarn install` or `yarn`. This will install all of the dependencies.
- Check for **yarn.lock**. If it is in the root directory then DELETE **yarn.lock**.
- Now, run `npm install`. This will install all of the dependencies.

- If you want to install dependencies with **yarn**.
- Check for **package-lock.json**. If it is in the root directory then DELETE **package-lock.json**.
- Now, run `yarn install` or `yarn`. This will install all of the dependencies.

### How do I use this program? 💻
- If you want to run with **npm**
- Run `npm start`

- If you want to run with **npm**
- Run `npm start`
- If you want to run with **yarn**
- Run `yarn start`
- Run `yarn start`

---

### Made By :

[<name of the creator/s >](Your profile link "go to creator profile")
16 changes: 10 additions & 6 deletions .readmeTemplates/Python.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,29 @@ Q How will this help others with completing the task?
Q What were the steps before using this automation and what are the steps after?
--->

### Things you will need to get it running: 📈
### Things you will need to get it running: 📈

-
-
-

### Additional packages: 📝

<!---Only add the names of packages which have to be installed externally!--->

- _package names_

#### How do I install additional packages? 🤨

- Make sure you have python package manager (**pip**) installed on your system
- Go to command line and type ```pip install <library name>``` { _pip3_ on mac }
- Go to command line and type `pip install <library name>` { _pip3_ on mac }
- For detailed information see [python's official tutorial on how to install packages](https://packaging.python.org/tutorials/installing-packages/)

### How do I use this program? 💻
- Steps to get your program running as intended
-

---
- Steps to get your program running as intended
- ***

### Made By:

### Made By:
[<name of the creator/s >](Your profile link)
26 changes: 12 additions & 14 deletions Automations/Currency-converter/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Currency converter

This web app is exclusively made for converting different currency rates in a most simple
and efficient manner. The best part of this web app is that it converts to current and live
rates from one another which keeps you up-to-date with the current exchange rates. It
supports up to 52 different currency rates from all over the globe.
It fetches live exchange rates from an API from the website exchangerate-api.com and
This web app is exclusively made for converting different currency rates in a most simple
and efficient manner. The best part of this web app is that it converts to current and live
rates from one another which keeps you up-to-date with the current exchange rates. It
supports up to 52 different currency rates from all over the globe.

It fetches live exchange rates from an API from the website exchangerate-api.com and
use it here.

# How do I use it? 👀🤨

For using it, First you have to select the currency from which you want to exchange. For
this you have to choose from "From:" section your desired currency and then select the
currency in which you want to exchange from "To:" section. Then enter the amount of
currency you want to exchange in "Amount:" section and finally click on "Convert" option.
Firstly it will show the current or live rate of 1 unit of that currency to other and then it
will display the exchange rate of the total amount you have entered.


For using it, First you have to select the currency from which you want to exchange. For
this you have to choose from "From:" section your desired currency and then select the
currency in which you want to exchange from "To:" section. Then enter the amount of
currency you want to exchange in "Amount:" section and finally click on "Convert" option.
Firstly it will show the current or live rate of 1 unit of that currency to other and then it
will display the exchange rate of the total amount you have entered.
30 changes: 14 additions & 16 deletions Automations/Currency-converter/app.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
const conv = document.getElementById("btn");
conv.addEventListener("click" ,()=>{
const from = document.getElementById("from_currency").value;
const to_curr = document.getElementById("to_currency").value;
const amount = document.getElementById("amount").value;
fetch(`https://api.exchangerate-api.com/v4/latest/${from}`)
.then(res => res.json())
.then(res => {
let rate = res.rates[to_curr];
var final_amount = amount*rate;
document.getElementById("result").innerText = `1 ${from} = ${rate} ${to_curr}
${amount} ${from} = ${final_amount} ${to_curr}`;
});


});
const conv = document.getElementById('btn')
conv.addEventListener('click', () => {
const from = document.getElementById('from_currency').value
const to_curr = document.getElementById('to_currency').value
const amount = document.getElementById('amount').value
fetch(`https://api.exchangerate-api.com/v4/latest/${from}`)
.then((res) => res.json())
.then((res) => {
let rate = res.rates[to_curr]
var final_amount = amount * rate
document.getElementById('result').innerText = `1 ${from} = ${rate} ${to_curr}
${amount} ${from} = ${final_amount} ${to_curr}`
})
})
Loading

0 comments on commit fae68a7

Please sign in to comment.