Skip to content

Navbar has been designed #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
58 changes: 18 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,24 @@
# algorithm-visualizer
### <a href="https://bappy4u.github.io/algorithm-visualizer/">Live Link <img src="https://user-images.githubusercontent.com/26277680/161445394-01bc2179-9fb4-4e57-9cd1-76c47e244ff6.png" data-canonical-src="https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png" width="15" height="auto" /></a>
# algo

### Completed Algorithm
* Sorting
* Bubble Sort
* Insertion Sort
* Searching
* Linear Search
* Binary Search


![image](https://user-images.githubusercontent.com/26277680/163478028-586e4e2e-b949-47c6-a6ad-9c418144af6b.png)
![image](https://user-images.githubusercontent.com/26277680/163477034-e55f6751-343f-4e84-bafe-881f03ccd2d7.png)



## Setup

The first thing to do is to clone the repository:

```sh
$ git clone https://github.com/Bappy4u/algorithm-visualizer.git
## Project setup
```
npm install
```
Then open `index.html` in the browser. That's it

### What I've used in this project

* JavaScript
* Async & Await function of javaScript
* D3.js for data visualization
* Algorithms
* Html & CSS


### Incomplete feature:

* More Sorting algorithms visualizations
* Linked list visualization
* Tree visualization
* And More...

###
### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
19 changes: 19 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}
61 changes: 61 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "algo",
"version": "1.0.0",
"private": true,
"description": "* Sorting\r * Bubble Sort\r * Insertion Sort\r * Searching\r * Linear Search\r * Binary Search",
"author": "",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "echo \"Error: no test specified\" && exit 1"
},
"main": "index.js",
"dependencies": {
"core-js": "^3.8.3",
"vue": "^3.2.13",
"vue-router": "^4.2.2"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli": "^5.0.8",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
],
"_id": "[email protected]",
"bugs": {
"url": "https://github.com/Bappy4u/algorithm-visualizer/issues"
},
"homepage": "https://github.com/Bappy4u/algorithm-visualizer#readme",
"keywords": [],
"license": "ISC",
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/Bappy4u/algorithm-visualizer.git"
}
}
Binary file added public/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Algorithm Visualizer</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
28 changes: 28 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<Algorithm-visualizer msg="Welcome to Algorithm Visualizer"/>
</template>

<script>
import AlgorithmVisualizer from './components/AlgorithmVisualizer.vue'

export default {
name: 'App',
components: {
AlgorithmVisualizer
}
}
</script>

<style>
body {
margin: 0;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;

}
</style>
15 changes: 15 additions & 0 deletions src/algorithms/algorithms.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div class="algos">
<h1>Welcome to Algorithm visualizer</h1>
</div>
</template>

<script>
export default {
name: "home-view"
}
</script>

<style scoped>

</style>
15 changes: 15 additions & 0 deletions src/algorithms/search/Search.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div>
<h1>Searching Algorithm</h1>
</div>
</template>

<script>
export default {
name: "SearchView"
}
</script>

<style scoped>

</style>
15 changes: 15 additions & 0 deletions src/algorithms/sort/Sort.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div>
<h1>Sorting Algorithm</h1>
</div>
</template>

<script>
export default {
name: "SortView"
}
</script>

<style scoped>

</style>
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions src/components/AlgorithmVisualizer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div class="hello">
<MenuView/>
<router-view></router-view>
</div>
</template>

<script>

import MenuView from "./menu";
export default {
name: 'algorithm-visualizer',
components: {MenuView},
props: {
msg: String
}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
Loading