Giter Site home page Giter Site logo

uasoft-indonesia / badaso-content-module Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 4.0 1.04 MB

Manage your website content through badaso dashboard.

Home Page: https://badaso-content.uatech.co.id

PHP 44.06% JavaScript 13.92% Vue 40.85% CSS 0.89% MDX 0.28%
badaso content laravel php module plugin addons vue low-code no-code ncpd lcpd

badaso-content-module's Introduction

badaso/content-module

Manage your website content through dashboard easily out of the box

How to installation content manager module

  1. Install Badaso from laravel project
  2. Install badaso content module

For v2.x (Laravel 8)

composer require badaso/content-module

For v1.x (Laravel 5,6,7)

composer require badaso/content-module:^1.0
  1. Set env
MIX_DEFAULT_MENU=admin
MIX_BADASO_MENU=${MIX_DEFAULT_MENU},content-module
MIX_BADASO_PLUGINS=content-module
  1. Call command php artisan migrate
  2. Call command php artisan badaso-content:setup or php artisan badaso-content:setup --force if you want to overwrite the file
  3. Call command composer dump-autoload
  4. Call command php artisan db:seed --class=BadasoContentModuleSeeder
  5. In menu item "Role Management" from badaso admin panel, add permission user to fill content

image

Support type content

  1. Text

    Support text type value content

    JSON example output
    {
     "text-exmaple" : {
       "name" : "text-example",
       "label" : "Text Example",
       "type" : "text",
       "data" : "Lorem ibsum siamet dor..."
     }
    }
    
  2. Image

    Support image type value content, image your choice for value content automatic save storage/app in laravel project

    JSON example output
    {
     "image-example" : {
       "name" : "image-example",
       "label" : "Image Example",
       "type" : "image",
       "data" : "image-example.png"
     }
    }
    
  3. URL

    Support url type value content

    JSON example output
    {
     "url-example" : {
       "name" : "url-example",
       "label" : "URL Example",
       "type" : "url",
       "data" : {
         "url" : "http://example.com",
         "text" : "Somthing Text"
       }
     }
    }
    
  4. Group

    Support value type content groups that accommodate other types of content

    JSON example output
    {
     "group-example" : {
       "name" : "group-example",
       "label" : "Group Example",
       "type" : "group",
       "data" : {
         "url-example" : {
           "name" : "url-example",
           "label" : "URL Example",
           "type" : "url",
           "data" : {
             "url" : "http://example.com",
             "text" : "Somthing Text"
           }
         },
         ...
       }
     }
    }
    
JSON example output all fetch
{
 "id" : 1,
 "slug" : "example-content",
 "label" : "Example Content",
 "value" : {
   "group-example" : {
     "name" : "group-example",
     "label" : "Group Example",
     "type" : "group",
     "data" : {
       "url-example" : {
         "name" : "url-example",
         "label" : "URL Example",
         "type" : "url",
         "data" : {
           "url" : "http://example.com",
           "text" : "Somthing Text"
         }
       },
       ...
     }
   }
   ...
 }
}

Demo

  1. Browse Content

    image

  2. Read Content

    image

  3. Create Content

    image

  4. Edit Content

    image

  5. Fill Content

    image

badaso-content-module's People

Contributors

4fdal avatar dannyatthaya avatar miftahurrahmi avatar mrrafiq avatar rahmatalmubarak avatar rizkiheryandi avatar stylecibot avatar

Stargazers

 avatar  avatar

Watchers

 avatar

badaso-content-module's Issues

add CONTRIBUTING.md

Is your feature request related to a problem? Please describe.
Guide for guest contributor, like github.com/uasoft-indonesia/badaso

Invalid slug's validation on edit content

Describe the bug
Invalid slug's validation when editing content.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Content Manager' menu.
  2. Click on 'Edit' button on a content.
  3. Press save.
  4. See error.

Expected behavior
Save successfully.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 91.0.4472.124

Need automatically add content module related table to Hidden tables while installing / setup

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Need ordering (with drag n drop) for list on group type content

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Invalid rule on edit

Describe the bug
Rule is invalid when editing the item

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Content Manager'
  2. Click on 'Edit' on any item
  3. Make some changes
  4. Click Submit
  5. See error

Expected behavior
It should run normally

Add "array" type content

  1. secara front end sama dengan object, tapi yang berbeda mengkonversi nilai ke database
    contoh :
    object
sponsor: {
  satu : {
    url : " ",
    gambar: " "
  },
    dua : " " 
}

Array

sponsor : [
  {
    satu: { },
    dua : " " 
  },
  {
    satu: { },
    dua : " "
  }
]
  1. Pada file content Array dapat menambahkan data secara dinamis

Typo on URL of content module swagger

Describe the bug
When using api documentation on content module, it return 404 http response.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'API Documentation'
  2. Click on any content module section
  3. Click 'Try it out'
  4. Enter any slug that available
  5. Click 'execute' button
  6. Return 404

Expected behavior
When to try with slug that available, it should return 200 http response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.