Skip to content

Commit 2c0c6cd

Browse files
committed
write READMY.md and make changes in way of use CSelect component
1 parent 9ee7e85 commit 2c0c6cd

File tree

5 files changed

+192
-12
lines changed

5 files changed

+192
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
!/laravel/public/robots
88
!/laravel/public/mix-manifest.json
99

10+
/laravel/composer.phar
1011
/laravel/node_modules
1112
/laravel/public/hot
1213
/laravel/public/storage

README.md

Lines changed: 186 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,186 @@
1-
# coreui-free-vue-laravel-admin-template
2-
CoreUI Free Vue Laravel Bootstrap Admin Template https://coreui.io/
1+
# CoreUI Free Vue Laravel Bootstrap Admin Template [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Bootstrap%204%20Admin%20Template%20&url=https://coreui.io&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue)
2+
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4+
5+
Please help us on [Product Hunt](https://www.producthunt.com/posts/coreui-open-source-bootstrap-4-admin-template-with-angular-2-react-js-vue-js-support) and [Designer News](https://www.designernews.co/stories/81127). Thanks in advance!
6+
7+
[![Bootstrap Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/)
8+
9+
Curious why I decided to create CoreUI? Please read this article: [Jack of all trades, master of none. Why Bootstrap Admin Templates suck.](https://medium.com/@lukaszholeczek/jack-of-all-trades-master-of-none-5ea53ef8a1f#.7eqx1bcd8)
10+
11+
CoreUI is based on Bootstrap 4 and offers 6 versions: [HTML5 AJAX](https://github.com/coreui/coreui-free-bootstrap-admin-template-ajax), [HTML5](https://github.com/coreui/coreui-free-angular-admin-template), [Angular 2+](https://github.com/coreui/coreui-free-angular-admin-template), [React.js](https://github.com/coreui/coreui-free-react-admin-template) & [Vue.js](https://github.com/coreui/coreui-free-vue-admin-template), [.NET Core 2](https://github.com/mrholek/CoreUI-NET).
12+
13+
CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of redundant components, so the app is light enough to offer ultimate user experience. This means mobile devices also, where the navigation is just as easy and intuitive as on a desktop or laptop. The CoreUI Layout API lets you customize your project for almost any device – be it Mobile, Web or WebApp – CoreUI covers them all!
14+
15+
## Table of Contents
16+
17+
* [Versions](#versions)
18+
* [CoreUI Pro](#coreui-pro)
19+
* [Admin Templates built on top of CoreUI Pro](#admin-templates-built-on-top-of-coreui-pro)
20+
* [Installation](#installation)
21+
* [Usage](#Usage)
22+
* [Creators](#creators)
23+
* [Community](#community)
24+
* [Community Projects](#community-projects)
25+
* [License](#license)
26+
* [Support CoreUI Development](#support-coreui-development)
27+
28+
## Versions
29+
30+
CoreUI is built on top of Bootstrap 4 and supports popular frameworks.
31+
32+
* [CoreUI Free Laravel Bootstrap Admin Template](https://github.com/coreui/coreui-free-laravel-admin-template)
33+
* [CoreUI Free Bootstrap Admin Template](https://github.com/coreui/coreui-free-bootstrap-admin-template)
34+
* [CoreUI Free Bootstrap Admin Template (Ajax)](https://github.com/coreui/coreui-free-bootstrap-admin-template-ajax)
35+
* [CoreUI Free Angular 2+ Admin Template](https://github.com/coreui/coreui-free-angular-admin-template)
36+
* 🚧 CoreUI Free .NET Core 2 Admin Template (Available Soon)
37+
* [CoreUI Free React.js Admin Template](https://github.com/coreui/coreui-free-react-admin-template)
38+
* [CoreUI Free Vue.js Admin Template](https://github.com/coreui/coreui-free-vue-admin-template)
39+
40+
## CoreUI Pro
41+
42+
* 💪 [CoreUI Pro Bootstrap Admin Template](https://coreui.io/pro/)
43+
* 💪 [CoreUI Pro Bootstrap Admin Template (Ajax)](https://coreui.io/pro/)
44+
* 💪 [CoreUI Pro Angular Admin Template](https://coreui.io/pro/angular)
45+
* 💪 [CoreUI Pro React Admin Template](https://coreui.io/pro/react)
46+
* 💪 [CoreUI Pro Vue Admin Template](https://coreui.io/pro/vue)
47+
48+
## Admin Templates built on top of CoreUI Pro
49+
50+
| CoreUI Pro | Prime | Root | Alba | Leaf |
51+
| --- | --- | --- | --- | --- |
52+
| [![CoreUI Pro Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/pro/) | [![Prime Admin Template](https://coreui.io/assets/img/responsive-prime.png)](https://coreui.io/admin-templates/bootstrap/prime/?support=1) | [![Root Admin Template](https://coreui.io/assets/img/responsive-root.png)](https://coreui.io/admin-templates/bootstrap/root/?support=1) | [![Alba Admin Template](https://coreui.io/assets/img/responsive-alba.png)](https://coreui.io/admin-templates/bootstrap/alba/?support=1) | [![Leaf Admin Template](https://coreui.io/assets/img/responsive-leaf.png)](https://coreui.io/admin-templates/bootstrap/leaf/?support=1)
53+
54+
## Installation
55+
56+
``` bash
57+
# clone the repo
58+
$ git clone https://github.com/coreui/coreui-free-vue-laravel-admin-template.git my-project
59+
60+
# go into app's directory
61+
$ cd my-project/laravel
62+
63+
# install app's dependencies
64+
$ composer install
65+
66+
# install app's dependencies
67+
$ npm install
68+
69+
# create database
70+
$ touch database/database.sqlite
71+
```
72+
Copy file ".env.example", and change its name to ".env".
73+
Then in file ".env" replace this database configuration:
74+
* DB_CONNECTION=mysql
75+
* DB_HOST=127.0.0.1
76+
* DB_PORT=3306
77+
* DB_DATABASE=laravel
78+
* DB_USERNAME=root
79+
* DB_PASSWORD=
80+
81+
To this:
82+
83+
* DB_CONNECTION=sqlite
84+
* DB_DATABASE=/path_to_your_project/my-project/laravel/database/database.sqlite
85+
86+
87+
``` bash
88+
# in your app directory
89+
# generate laravel APP_KEY
90+
$ php artisan key:generate
91+
92+
# generate jwt secret
93+
$ php artisan jwt:secret
94+
95+
# run database migration and seed
96+
$ php artisan migrate:refresh --seed
97+
98+
```
99+
100+
```bash
101+
# go to coreui directory
102+
$ cd ../coreui
103+
104+
# install app's dependencies
105+
$ npm install
106+
107+
```
108+
109+
``` bash
110+
# back to laravel directory
111+
$ cd ../laravel
112+
113+
# generate mixing
114+
$ npm run dev
115+
116+
# and repeat generate mixing
117+
$ npm run dev
118+
```
119+
120+
## Usage
121+
122+
``` bash
123+
# start local server from laravel directory
124+
$ php artisan serve
125+
```
126+
Open your browser and open adress: "localhost:8000"
127+
Choice "Notes" from top bar menu. Then login with credentials:
128+
129+
130+
* Password: password
131+
132+
This user has roles: 'user' and 'admin'
133+
* Role 'user' is required for notes management.
134+
* Role 'admin' is required for users management.
135+
136+
``` bash
137+
# testing from laravel directory
138+
$ php
139+
```
140+
141+
## Creators
142+
143+
**Łukasz Holeczek**
144+
145+
* <https://twitter.com/lukaszholeczek>
146+
* <https://github.com/mrholek>
147+
148+
**Andrzej Kopański**
149+
150+
* <https://github.com/xidedix>
151+
152+
## Community
153+
154+
Get updates on CoreUI's development and chat with the project maintainers and community members.
155+
156+
- Follow [@core_ui on Twitter](https://twitter.com/core_ui).
157+
- Read and subscribe to [CoreUI Blog](https://coreui.io/blog/).
158+
159+
### Community Projects
160+
161+
Some of projects created by community but not maintained by CoreUI team.
162+
163+
* [NuxtJS + Vue CoreUI](https://github.com/muhibbudins/nuxt-coreui)
164+
* [Colmena](https://github.com/colmena/colmena)
165+
166+
## CoreUI Icons (522 Free icons) - Premium designed free icon set with marks in SVG, Webfont and raster formats.
167+
168+
CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app. Ready-to-use fonts and stylesheets that work with your favorite frameworks.
169+
170+
![CoreUI Free Icons](https://coreui.io/images/icons_free_bg_set.png)
171+
172+
173+
### CoreUI Icons Preview & Docs
174+
175+
[https://coreui.io/icons/](https://coreui.io/icons/)
176+
177+
## Copyright and license
178+
179+
copyright 2018 creativeLabs Łukasz Holeczek. Code released under [the MIT license](https://github.com/coreui/coreui-free-laravel-admin-template/blob/master/LICENSE).
180+
There is only one limitation you can't can’t re-distribute the CoreUI as stock. You can’t do this if you modify the CoreUI. In past we faced some problems with persons who tried to sell CoreUI based templates.
181+
182+
## Support CoreUI Development
183+
184+
CoreUI is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by donating on [PayPal](https://www.paypal.me/holeczek), buying [CoreUI Pro Version](https://coreui.io/pro) or buying one of our [premium admin templates](https://genesisui.com/?support=1).
185+
186+
As of now I am exploring the possibility of working on CoreUI fulltime - if you are a business that is building core products using CoreUI, I am also open to conversations regarding custom sponsorship / consulting arrangements. Get in touch on [Twitter](https://twitter.com/lukaszholeczek).

coreui/src/views/notes/CreateNote.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<CSelect id="status_id"
2424
label="Status"
2525
:value.sync="note.status_id"
26-
v-model="note.status_id"
2726
:plain="true"
2827
:options="statuses"
2928
>

coreui/src/views/notes/EditNote.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<CInput label="Applies to date" type="date" id="applies_to_date" v-model="note.applies_to_date"/>
2626
<CSelect id="status_id"
2727
:value.sync="note.status_id"
28-
v-model="note.status_id"
2928
:options="statuses"
3029
label="Status"
3130
>
@@ -56,14 +55,13 @@ export default {
5655
title: '',
5756
content: '',
5857
applies_to_date: '',
59-
status_id: '',
58+
status_id: null,
6059
note_type: '',
6160
},
6261
statuses: [],
6362
message: '',
6463
dismissSecs: 7,
6564
dismissCountDown: 0,
66-
showDismissibleAlert: false
6765
}
6866
},
6967
methods: {
@@ -95,14 +93,11 @@ export default {
9593
}
9694
self.showAlert();
9795
}else{
98-
console.log(error);
96+
console.log(error);
9997
self.$router.push({ path: 'login' });
10098
}
10199
});
102100
},
103-
countDownChanged (dismissCountDown) {
104-
this.dismissCountDown = dismissCountDown
105-
},
106101
showAlert () {
107102
this.dismissCountDown = this.dismissSecs
108103
},
@@ -111,8 +106,9 @@ export default {
111106
let self = this;
112107
axios.get('/api/notes/' + self.$route.params.id + '/edit?token=' + localStorage.getItem("api_token"))
113108
.then(function (response) {
114-
self.note = response.data.note;
115-
self.statuses = response.data.statuses;
109+
let data = JSON.parse(JSON.stringify(response.data));
110+
self.note = data.note;
111+
self.statuses = data.statuses;
116112
}).catch(function (error) {
117113
console.log(error);
118114
self.$router.push({ path: 'login' });

laravel/composer.phar

-1.84 MB
Binary file not shown.

0 commit comments

Comments
 (0)