Skip to content

Commit 7b82099

Browse files
committed
av-2: Initialized vuejs
1 parent 24f413f commit 7b82099

12 files changed

+222
-48
lines changed

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

README.md

+18-40
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
1-
# algorithm-visualizer
2-
### <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>
1+
# algo
32

4-
### Completed Algorithm
5-
* Sorting
6-
* Bubble Sort
7-
* Insertion Sort
8-
* Searching
9-
* Linear Search
10-
* Binary Search
11-
12-
13-
![image](https://user-images.githubusercontent.com/26277680/163478028-586e4e2e-b949-47c6-a6ad-9c418144af6b.png)
14-
![image](https://user-images.githubusercontent.com/26277680/163477034-e55f6751-343f-4e84-bafe-881f03ccd2d7.png)
15-
16-
17-
18-
## Setup
19-
20-
The first thing to do is to clone the repository:
21-
22-
```sh
23-
$ git clone https://github.com/Bappy4u/algorithm-visualizer.git
3+
## Project setup
4+
```
5+
npm install
246
```
25-
Then open `index.html` in the browser. That's it
26-
27-
### What I've used in this project
28-
29-
* JavaScript
30-
* Async & Await function of javaScript
31-
* D3.js for data visualization
32-
* Algorithms
33-
* Html & CSS
34-
35-
36-
### Incomplete feature:
37-
38-
* More Sorting algorithms visualizations
39-
* Linked list visualization
40-
* Tree visualization
41-
* And More...
427

43-
###
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
4412

13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
4517

18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
4622

23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

jsconfig.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "esnext",
5+
"baseUrl": "./",
6+
"moduleResolution": "node",
7+
"paths": {
8+
"@/*": [
9+
"src/*"
10+
]
11+
},
12+
"lib": [
13+
"esnext",
14+
"dom",
15+
"dom.iterable",
16+
"scripthost"
17+
]
18+
}
19+
}

package.json

+48-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,60 @@
11
{
22
"name": "algo",
33
"version": "1.0.0",
4+
"private": true,
45
"description": "* Sorting\r * Bubble Sort\r * Insertion Sort\r * Searching\r * Linear Search\r * Binary Search",
5-
"main": "index.js",
6+
"author": "",
67
"scripts": {
8+
"serve": "vue-cli-service serve",
9+
"build": "vue-cli-service build",
10+
"lint": "vue-cli-service lint",
711
"test": "echo \"Error: no test specified\" && exit 1"
812
},
9-
"repository": {
10-
"type": "git",
11-
"url": "git+https://github.com/Bappy4u/algorithm-visualizer.git"
13+
"main": "index.js",
14+
"dependencies": {
15+
"core-js": "^3.8.3",
16+
"vue": "^3.2.13"
1217
},
13-
"keywords": [],
14-
"author": "",
15-
"license": "ISC",
18+
"devDependencies": {
19+
"@babel/core": "^7.12.16",
20+
"@babel/eslint-parser": "^7.12.16",
21+
"@vue/cli": "^5.0.8",
22+
"@vue/cli-plugin-babel": "~5.0.0",
23+
"@vue/cli-plugin-eslint": "~5.0.0",
24+
"@vue/cli-service": "~5.0.0",
25+
"eslint": "^7.32.0",
26+
"eslint-plugin-vue": "^8.0.3"
27+
},
28+
"eslintConfig": {
29+
"root": true,
30+
"env": {
31+
"node": true
32+
},
33+
"extends": [
34+
"plugin:vue/vue3-essential",
35+
"eslint:recommended"
36+
],
37+
"parserOptions": {
38+
"parser": "@babel/eslint-parser"
39+
},
40+
"rules": {}
41+
},
42+
"browserslist": [
43+
"> 1%",
44+
"last 2 versions",
45+
"not dead",
46+
"not ie 11"
47+
],
48+
1649
"bugs": {
1750
"url": "https://github.com/Bappy4u/algorithm-visualizer/issues"
1851
},
19-
"homepage": "https://github.com/Bappy4u/algorithm-visualizer#readme"
52+
"homepage": "https://github.com/Bappy4u/algorithm-visualizer#readme",
53+
"keywords": [],
54+
"license": "ISC",
55+
"readme": "ERROR: No README data found!",
56+
"repository": {
57+
"type": "git",
58+
"url": "git+https://github.com/Bappy4u/algorithm-visualizer.git"
59+
}
2060
}

public/favicon.ico

4.19 KB
Binary file not shown.

public/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

src/App.vue

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<img alt="Vue logo" src="./assets/logo.png">
3+
<HelloWorld msg="Welcome to Your Vue.js App"/>
4+
</template>
5+
6+
<script>
7+
import HelloWorld from './components/HelloWorld.vue'
8+
9+
export default {
10+
name: 'App',
11+
components: {
12+
HelloWorld
13+
}
14+
}
15+
</script>
16+
17+
<style>
18+
#app {
19+
font-family: Avenir, Helvetica, Arial, sans-serif;
20+
-webkit-font-smoothing: antialiased;
21+
-moz-osx-font-smoothing: grayscale;
22+
text-align: center;
23+
color: #2c3e50;
24+
margin-top: 60px;
25+
}
26+
</style>

src/assets/logo.png

6.69 KB
Loading

src/components/HelloWorld.vue

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
<p>
5+
For a guide and recipes on how to configure / customize this project,<br>
6+
check out the
7+
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8+
</p>
9+
<h3>Installed CLI Plugins</h3>
10+
<ul>
11+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13+
</ul>
14+
<h3>Essential Links</h3>
15+
<ul>
16+
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17+
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18+
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19+
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20+
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21+
</ul>
22+
<h3>Ecosystem</h3>
23+
<ul>
24+
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25+
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26+
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27+
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28+
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29+
</ul>
30+
</div>
31+
</template>
32+
33+
<script>
34+
export default {
35+
name: 'HelloWorld',
36+
props: {
37+
msg: String
38+
}
39+
}
40+
</script>
41+
42+
<!-- Add "scoped" attribute to limit CSS to this component only -->
43+
<style scoped>
44+
h3 {
45+
margin: 40px 0 0;
46+
}
47+
ul {
48+
list-style-type: none;
49+
padding: 0;
50+
}
51+
li {
52+
display: inline-block;
53+
margin: 0 10px;
54+
}
55+
a {
56+
color: #42b983;
57+
}
58+
</style>

src/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createApp } from 'vue'
2+
import App from './App.vue'
3+
4+
createApp(App).mount('#app')

vue.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { defineConfig } = require('@vue/cli-service')
2+
module.exports = defineConfig({
3+
transpileDependencies: true
4+
})

0 commit comments

Comments
 (0)