Skip to content

Commit cf4b354

Browse files
authored
Merge pull request #102 from oslabs-beta/master
Final Merge
2 parents d740a71 + 05cb8a8 commit cf4b354

File tree

94 files changed

+3338
-1754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+3338
-1754
lines changed

.eslintrc.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
module.exports = {
22
root: true,
33
env: {
4+
es2021: true,
45
node: true
56
},
67
extends: [
78
'plugin:vue/essential',
89
'plugin:prettier/recommended',
9-
'@vue/prettier'
10+
'@vue/prettier',
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended'
1013
],
14+
parser: 'vue-eslint-parser',
15+
plugins: ['@typescript-eslint, vue'],
1116
rules: {
1217
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
1318
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
14-
},
15-
parserOptions: {
16-
parser: 'babel-eslint'
1719
}
1820
};

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
node_modules
33
/dist
44

5-
# local env files
5+
# dotenv environment variables files (local env files)
66
.env.local
77
.env.*.local
88
.env
9+
.env.test
10+
911

1012
# Log files
1113
npm-debug.log*
@@ -22,7 +24,5 @@ yarn-error.log*
2224
*.sln
2325
*.sw*
2426

25-
#Electron-builder output
26-
/dist_electron
2727

2828
package-lock.json

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# base image that provides runtime environment for the application
2+
FROM node:16.13
3+
# where the application code will be copied to in the docker container
4+
WORKDIR /usr/src/app
5+
# copies all files from the current directory (where the Dockerfile is located) to the working directory in the docker image (which we set on line 4)
6+
COPY . .
7+
RUN npm install
8+
RUN npm run build
9+
# Exposes port 4173 to the host machine, so that it can access the Node.js application running inside the Docker container
10+
EXPOSE 8080
11+
# Specifies the command to run when the Docker container starts
12+
ENTRYPOINT npm run server

README.md

Lines changed: 51 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="350" src="src/assets/prevue-logo.png?raw=true">
2+
<img width="350" src="src/assets/prevue_color_white.png?raw=true">
33
<h1 align="center">PreVue </h1>
44
</p>
55

@@ -16,34 +16,24 @@ For Vue Developers
1616
From Component Architecture to Code Exporting
1717
</h4>
1818

19-
PreVue allows the user to design/visualize their component architecture by allowing users to :
19+
PreVue allows users to conceptualize and visualize component architecture by allowing them to :
2020

21-
1. Create components and preview their code
21+
1. Create components and preview their associated code
22+
2. Set up different routes and views
23+
3. Establish parent-child component relationships
24+
4. View application hierarchy in tree format
25+
5. Export the component architecture as a Vue application created with default Vite settings.
2226

23-
2. Set up different views/routes
24-
25-
3. Establish parent-child component relationships
26-
27-
4. See their application architecture in tree format
28-
29-
5. Export the component architecture as a Vue application created with the default Vue CLI settings.
27+
Use PreVue to create projects in single sessions or sign in with GitHub to save projects and update them anytime.
28+
the component architecture as a Vue application created with the default Vue CLI settings.
3029

3130
<p align="center">
32-
<img width="1000" src="src/assets/prevue.png?raw=true">
31+
<img width="1000" src="src/assets/3.png?raw=true">
3332

3433
</p>
3534

3635
## Getting Started
3736

38-
---
39-
40-
Download for [MacOS](https://s3.amazonaws.com/prevue-app/PreVue-1.0.0.dmg), [Linux](https://s3.amazonaws.com/prevue-app/PreVue_1.0.0_amd64.deb), or [Windows](https://s3.amazonaws.com/prevue-app/PreVue+Setup+1.0.0.exe)
41-
42-
###### Support for Windows now here!
43-
44-
- Mac users only: for now you might need to go to your security settings to allow the app run on your system as we do not have an Apple license yet.
45-
46-
If you find any issues, [file issue](https://github.com/teamprevue/PreVue/issues)
4737

4838
## How to use
4939

@@ -52,45 +42,49 @@ If you find any issues, [file issue](https://github.com/teamprevue/PreVue/issues
5242
#### Adding Components
5343

5444
- Double click on the application icon
55-
- Create components by entering a name and clicking the html elements you need
56-
57-
- Clicked elements will be shown on the right sidebar
58-
- Drag them around to change the order!
45+
- Create components by entering a name and clicking the HTML elements you need
46+
- Clicked elements will be shown in the right sidebar
47+
- Drag the elements to change their order
48+
- Once you're satisfied, click the button to ‘add a component’ and it will show up in the working area. Resize and move components to fit the design you have in mind.
5949

60-
- Once you're satisfied, click the button to add a component and it will show up in the center stage, with the ability to resize!
6150

62-
<img src='http://g.recordit.co/fyQ6LKvwlt.gif'/>
51+
<img width="1000" src="src/assets/newcomp.png?raw=true">
6352

6453
#### Editing Components
6554

66-
- Edit components by double clicking for the edit modal to show
55+
- Double click elements to bring up the modal view
6756
- Add additional elements to a component with a live preview of the component code
6857
- Drag elements on the right side bar to nest elements
69-
- Establish parent-child component relationships via a dropdown menu when creating or editing components
58+
- Establish parent-child component relationships via the dropdown menu when creating or editing components
7059

71-
<img src='http://g.recordit.co/A6rOQRJVOc.gif'/>
7260

73-
#### Adding Routes/Projects
61+
<img width="1000" src="src/assets/componentdisplay.png?raw=true">
7462

75-
- Create different routes for your application by entering a new route name and pressing enter
76-
- Any components created on a certain route will be automatically saved to that route
77-
- Play with multiple projects by clicking the add project icon!
78-
- Display a tree view of entire application component architecture when the tree icon on navbar is clicked
63+
#### Adding Routes
7964

80-
<img src='http://g.recordit.co/bfYwX1sdtl.gif'/>
65+
- Create different routes that represent different Views for your app.
66+
- Any components created on a given route will be automatically saved to that route
67+
- See your application’s hierarchy by clicking the ‘Tree’ icon in the navigation bar
68+
69+
<p align="center">
70+
<img src="src/assets/routecreator.png?raw=true">
71+
</p>
8172

8273
#### Tree View of Application Architecture
8374

8475
<p align="center">
85-
<img width="1000" src="src/assets/tree-demo.png?raw=true">
76+
<img width="1000" src="src/assets/treeview.png?raw=true">
8677

8778
</p>
8879

8980
#### Saving/Opening/Exporting Projects
9081

91-
- If you ever need to save your current project, click the save project icon to save a json to your local directory
92-
- Next time the application is started, open the project again by clicking the open project icon!
82+
- In order to utilize the saving and opening functionality of PreVue, please clone the repo to run on your local machine.
83+
- If you're signed in with GitHub, click the ‘Save Project’ icon to save it to PreVue’s database
84+
- Click ‘Open Project’ to retrieve past projects
9385
- Once you're satisfied, click the export project icon to export your awesome project as new Vue application!
86+
- Other users can use PreVue's playground to create and export projects in single sessions.
87+
9488

9589
<img src='http://g.recordit.co/uFLqyjAnMm.gif'/>
9690

@@ -112,66 +106,63 @@ src/
112106
UserCreatedRouteComponent2.vue
113107
...
114108
```
115-
116-
### Editor Hotkeys:
117-
118-
- cmd/ctrl + s: save
119-
- cmd/ctrl + o: open
120-
- cmd/ctrl + n: new project tab
121-
- cmd/ctrl + w: close project tab
122-
123109
## Running your own local version
124110

125-
---
126-
127-
PreVue was developed using node runtime @ v10.15.0. You should make sure you at least have that version installed to ensure full compatibility. You can download the latest version of node [here](https://nodejs.org/en/)
128111

129112
### Setup
130113

131114
Clone this repo
132115

133116
```
134-
git clone https://github.com/teamprevue/PreVue.git
117+
git clone https://github.com/oslabs/PreVue.git
135118
```
136119

137120
Install dependencies
138121

139122
```
140123
npm i
141124
```
125+
Build the app
142126

143-
Run electron app
127+
```
128+
npm run build
129+
```
130+
Run the app
144131

145132
```
146-
npm run electron:serve
133+
npm run server
147134
```
148135

136+
Go to <strong>http://localhost:8080</strong> to use PreVue!
137+
149138
## Built With
150139

151140
---
152141

153142
- [Vue.js](https://vuejs.org/)
154143
- [Vue Router](https://router.vuejs.org/guide/#html)
155144
- [Vuex](https://vuex.vuejs.org/)
156-
- [Electron](https://electronjs.org/)
157-
- [Vue-Electron CLI](https://github.com/nklayman/vue-cli-plugin-electron-builder)
158-
- [Buefy](https://buefy.org/)
159-
- [Babel](https://babeljs.io/)
145+
- [Vite](https://vitejs.dev/)
146+
- [Vuetify](https://vuetifyjs.com/)
160147
- [Jest](https://jestjs.io/)
161-
- [Travis](https://travis-ci.org/)
162-
- [localForage](https://localforage.github.io/localForage/)
163-
- [Vue D3 Tree](https://github.com/David-Desmaisons/Vue.D3.tree)
148+
- [SuperTest](https://www.npmjs.com/package/supertest)
164149

165150
## Contributing
166151

167152
---
168153

169-
PreVue is currently in beta release. We encourage you to submit issues for any bugs or ideas for enhancements. Also feel free to fork this repo and submit pull requests to contribute as well.
154+
PreVue We encourage you to submit issues for any bugs or ideas for enhancements. Please feel free to fork this repo and submit pull requests to contribute as well. Also follow PreVue on [LinkedIn](https://www.linkedin.com/company/prevue-live/) for more updates.
170155

171156
## Authors
172157

173158
---
159+
PreVue 2.0
160+
- **Jason Boo** [@jasonboo123](https://github.com/jasonboo123)
161+
- **Robert Drake** [@rmdrake8](https://github.com/rmdrake8)
162+
- **Sean Flynn** [@seanflynn5](http://github.com/seanflynn5)
163+
- **Zach Pestaina** [@zachpestaina](https://github.com/zachpestaina)
174164

165+
PreVue 1.0
175166
- **Hubert Lin** [@hubelin](https://github.com/hubelin)
176167
- **Franklin Pinnock** [@pinnockf](https://github.com/pinnockf)
177168
- **Annette Lin** [@al2613](https://github.com/al2613)

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

electron-builder.json

Lines changed: 0 additions & 40 deletions
This file was deleted.
File renamed without changes.

public/index.html renamed to index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
7-
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
7+
<link rel="icon" href="/favicon.ico" />
88

99
<link
1010
rel="stylesheet"
1111
href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
1212
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"
1313
crossorigin="anonymous"
1414
/>
15-
<!-- <link
16-
rel="stylesheet"
17-
href="https://unpkg.com/bulmaswatch/darkly/bulmaswatch.min.css"
18-
/> -->
1915

2016
<title>PreVue</title>
2117
</head>
@@ -29,5 +25,7 @@
2925
</noscript>
3026
<div id="app"></div>
3127
<!-- built files will be auto injected -->
28+
29+
<script type="module" src="/src/main.ts"></script>
3230
</body>
3331
</html>

jest.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ module.exports = {
44
'^.+\\.vue$': 'vue-jest',
55
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
66
'jest-transform-stub',
7-
'^.+\\.jsx?$': 'babel-jest'
7+
'^.+\\.jsx?$': 'babel-jest',
88
},
99
transformIgnorePatterns: ['/node_modules/'],
1010
moduleNameMapper: {
11-
'^@/(.*)$': '<rootDir>/src/$1'
11+
'^@/(.*)$': '<rootDir>/src/$1',
1212
},
1313
snapshotSerializers: ['jest-serializer-vue'],
1414
testMatch: [
15-
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
15+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
1616
],
17-
testURL: 'http://localhost/'
17+
testEnvironmentOptions: {
18+
url: 'http://localhost:5174', // replace with your test URL
19+
},
20+
testEnvironment: 'node',
1821
};

0 commit comments

Comments
 (0)