Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
05a9196
reviewing updates
Feb 21, 2017
9ca58a1
fix rendering problems
pongoman Feb 23, 2017
3e900bc
index posts working no pagnt
pongoman Mar 30, 2017
78f2089
fix param name
pongoman Mar 30, 2017
1f1eb46
restore vue-multiselect
pongoman Mar 30, 2017
cfcf200
simple mde editor
pongoman Mar 30, 2017
7ce1541
fix names
pongoman Mar 30, 2017
58c920e
update categories page
pongoman Mar 30, 2017
092da98
update packages
pongoman Oct 9, 2017
4142604
add names
pongoman Oct 9, 2017
408ce3a
attempt to fix paginator error ( You are using the runtime-only build…
pongoman Oct 9, 2017
1f3c2db
import axios - router.push fails
pongoman Oct 9, 2017
bd70982
add & update names
pongoman Oct 10, 2017
be51eef
update code with style guide
pongoman Oct 10, 2017
04cd430
replace v-bind with shothand
pongoman Oct 10, 2017
413314d
add missing vue-multiselect styles
pongoman Oct 10, 2017
c8cad07
change var to const
pongoman Oct 10, 2017
67c4b46
add axios via script
pongoman Oct 10, 2017
5968b1f
replace vue-resource calls with axios
pongoman Oct 10, 2017
3991d3c
change subheading of index page
pongoman Oct 11, 2017
b375643
filter bath to dashboard if user is not logged in, redirect to login
pongoman Oct 17, 2017
ff727b5
remove prop type
pongoman Oct 21, 2017
f236806
create post method
pongoman Oct 21, 2017
a985333
change axios usage
pongoman Oct 21, 2017
cb56859
change blog's subtitles
pongoman Oct 21, 2017
84b1d3a
managing packages
pongoman Oct 21, 2017
f2c9c34
change app id
pongoman Oct 21, 2017
7b349f3
point to compiler included build
pongoman Oct 21, 2017
7ebbeea
bind axios to window
pongoman Oct 21, 2017
40e5191
codes according to style guide
pongoman Dec 11, 2017
0960c99
update methods and columns
pongoman Jan 4, 2018
0ad1895
update methods in order to work properly
pongoman Jan 4, 2018
741e3d9
update methods in order to work properly
pongoman Jan 4, 2018
e632fa3
update html
pongoman Jan 4, 2018
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
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var elixir = require('laravel-elixir');
elixir.config.js.browserify.watchify.options.poll = true;
const elixir = require('laravel-elixir');
// elixir.config.js.browserify.watchify.options.poll = true;

// elixir.config.js.browserify.transformers.push({
// name: 'vueify'
// });
// require('laravel-elixir-vue-2');
require('laravel-elixir-browserify-official');
require('laravel-elixir-vueify');
require('laravel-elixir-livereload');

Expand All @@ -20,7 +22,7 @@ require('laravel-elixir-livereload');

elixir(function(mix) {
mix.less('../themes/clean-blog/clean-blog.less')

mix.browserify('main.js')
mix.browserify('theme.js')
mix.version(['public/js/main.js', 'public/js/theme.js']);
Expand Down
46 changes: 30 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,40 @@
"prod": "gulp --production",
"dev": "gulp watch"
},
"browser": {
"vue": "vue/dist/vue.common.js"
},
"devDependencies": {
"babel-core": "^6.9.1",
"aliasify": "^2.1.0",
"babel-core": "^6.26.0",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"babel-runtime": "^6.9.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-runtime": "^6.26.0",
"babelify": "^7.3.0",
"bootstrap-sass": "^3.3.6",
"css-loader": "^0.23.1",
"gulp": "^3.9.1",
"gulp-livereload": "^3.8.1",
"jquery": "^2.2.3",
"laravel-elixir": "^5.0.0",
"laravel-elixir": "^6.0.0-16",
"laravel-elixir-browserify-official": "^0.1.3",
"laravel-elixir-livereload": "^1.1.5-beta",
"laravel-elixir-vueify": "^1.0.3",
"pnotify": "^3.0.0",
"laravel-elixir-vue": "^0.1.4",
"laravel-elixir-vue-2": "^0.3.0",
"laravel-elixir-vueify": "^2.0.0",
"pnotify": "^3.2.1",
"sweetalert2": "^4.0.5",
"vue": "^1.0.25",
"vue-hot-reload-api": "^1.3.2",
"vue-html-loader": "^1.2.2",
"vue-loader": "^8.5.2",
"vue-multiselect": "^0.3.0",
"vue-resource": "0.8.0",
"vue-router": "^0.7.13",
"vue-loader": "^11.3.4",
"vue-multiselect": "^2.0.3",
"vue-router": "^3.0.0",
"vue-style-loader": "^1.0.0",
"vueify": "^8.5.4",
"webpack": "^1.13.1"
"vueify": "^9.4.1",
"watchify": "^3.9.0",
"webpack": "^1.15.0"
},
"name": "vuejs-news",
"description": "[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) [![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework) [![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework) [![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework) [![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)",
Expand All @@ -40,10 +46,18 @@
"test": "tests"
},
"dependencies": {
"axios": "^0.16.2",
"dropzone": "^4.3.0",
"laravel-elixir": "^6.0.0-15",
"simplemde": "^1.11.2",
"vue-multiselect": "^0.3.0",
"vuejs-paginator": "^1.0.14"
"vue": "^2.4.4",
"vue-multiselect": "^2.0.0-beta.15",
"vuejs-paginator": "^2.0.2"
},
"aliasify": {
"aliases": {
"vue": "vue/dist/vue.js"
}
},
"author": "Alex Kyriakidis <hootlex@icloud.com>",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@

# Vuedo ![logo](http://i.imgur.com/iBEAx7O.png?2)
[![Build Status](https://travis-ci.org/Vuedo/vuedo.svg?branch=master)](https://travis-ci.org/Vuedo/vuedo) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE) [![Join the chat at https://gitter.im/vuedo/Lobby](https://badges.gitter.im/vuedo/Lobby.svg)](https://gitter.im/vuedo/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## What is Vuedo?

Vuedo is an open source project built with Laravel and Vue.js. It is a live example of how everything works together.

Interested in more theory? Here is the [official announcement](https://dotdev.co/announcing-vuedo-an-open-source-project-built-with-laravel-and-vue-js-84f371409401).

## Website using Vuedo in production : [https://vuejsfeed.com/](https://vuejsfeed.com/)

Vue.js Feed is a place where News, Tutorials, Plugins, Showcases and more things regarding Vue are handpicked and shared with the community.
Expand Down
46 changes: 23 additions & 23 deletions resources/assets/js/App.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
<template>
<div >
<navbar></navbar>
<sidebar></sidebar>
</div>
<div id="app">
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Admin Panel
<small>Everything is here.</small>
</h1>
</section>
<div class="navigation">
<navbar></navbar>
<sidebar></sidebar>
</div>
<div>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Admin Panel
<small>Everything is here.</small>
</h1>
</section>

<!-- Main content -->
<section class="content">
<!-- Your Page Content Here -->
<!-- route outlet -->
<router-view></router-view>
</section>
<!-- /.content -->
<!-- Main content -->
<section class="content">
<!-- Your Page Content Here -->
<!-- route outlet -->
<router-view></router-view>
</section>
<!-- /.content -->
</div>
</div>
</div>
</template>
Expand All @@ -29,13 +31,11 @@
import Navbar from './components/layouts/Navbar.vue'
import Sidebar from './components/layouts/Sidebar.vue'



export default {
name: 'app',
components: {
Navbar,
Sidebar
},
replace: false
}
}
</script>
42 changes: 23 additions & 19 deletions resources/assets/js/components/Categories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@
<h3 class="box-title">All Categories</h3>
</div>
<!-- /.box-header -->
<div class="box-body table-responsive no-padding">
<table class="table table-hover">
<div class="box-body table-responsive">
<table class="table table-striped">
<tr>
<th>Category Name</th>
<th>Icon</th>
<th class="col-xs-2 col-md-3 col-lg-4">Category Name</th>
<th class="col-xs-2 col-md-3 col-lg-4">Icon</th>
<th class="col-xs-8 col-md-6 col-lg-4">Actions</th>
</tr>
<tr v-for="category in categories">
<td>
<td class="col-xs-2 col-md-3 col-lg-4">
{{category.name}}
</td>
<td>{{category.icon}}</td>
<td class="col-sm-3">
<td class="col-xs-2 col-md-3 col-lg-4">{{category.icon}}</td>
<td class="col-xs-8 col-md-6 col-lg-4">
<div class="btn-group">
<button type="button" v-link="{ name: 'postincats', params: {hashid: category.hashid}}" class="btn btn-success">
View posts
</button>
<button type="button" v-link="{ name: 'categories', params: {hashid: category.hashid}}" class="btn btn-warning">
Edit
</button>
<router-link :to="{ name: 'postincats', params: { hashid: category.hashid }}" tag="button" class="btn btn-success">
View posts
</router-link>
<router-link :to="{ name: 'categories', params: { hashid: category.hashid }}" tag="button" class="btn btn-warning">
Edit
</router-link>
<button class="btn btn-danger" @click="deleteCategory(category)">Delete</button>
</div>
</td>
Expand All @@ -43,10 +44,12 @@
</template>

<script>
import Vue from 'vue'
import { stack_bottomright, show_stack_success, show_stack_error, show_stack_info } from '../Pnotice.js'

export default {
ready () {
name: 'CategList',
mounted () {
this.fetchCategories()
},
data () {
Expand All @@ -56,14 +59,14 @@ export default {
},
methods: {
fetchCategories () {
this.$http({url: '/api/categories/', method: 'GET'}).then(function (response) {
this.$set('categories', response.data.data)
axios.get('/api/categories/').then(response => {
Vue.set(this, 'categories', response.data.data)
})
},
createCategory () {
this.$http({url: '/api/categories', method: 'POST'}).then(function (response) {
axios.post('/api/categories').then(response => {
show_stack_info('Creating Category...', response)
this.$router.go('/categories/' + response.data.hashid + '/edit')
this.$router.push('/categories/' + response.data.hashid + '/edit')
})
},
deleteCategory (category) {
Expand All @@ -76,7 +79,8 @@ export default {
confirmButtonText: 'Yes, delete it!',
cancelButtonText: 'No, keep it',
}).then(function() {
self.categories.$remove(category)
// self.categories.$remove(category)
var index = self.categories.indexOf(category); self.categories.splice(index, 1)
self.$http.delete('/api/categories/' + category.hashid, category).then(function (response) {
swal(
'Deleted!',
Expand Down
Loading