Skip to content

Commit

Permalink
laravel-projects/packages/onix automatic push
Browse files Browse the repository at this point in the history
  • Loading branch information
mariojgt committed May 14, 2024
1 parent 575daa2 commit ac92089
Show file tree
Hide file tree
Showing 17 changed files with 725 additions and 53 deletions.
4 changes: 2 additions & 2 deletions Publish/Npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.3.0",
"daisyui": "^2.43.0",
"grapesjs": "^0.20.4",
"daisyui": "^4.11.1",
"grapesjs": "^0.21.4",
"grapesjs-aviary": "^0.1.2",
"grapesjs-blocks-basic": "^1.0.1",
"grapesjs-blocks-flexbox": "^0.1.1",
Expand Down
3 changes: 3 additions & 0 deletions Publish/Npm/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ module.exports = {
plugins: [
require('daisyui'),
],
daisyui: {
themes: ["light", "dark", "cupcake"],
},
}
8 changes: 7 additions & 1 deletion Publish/Npm/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ export default defineConfig({
css: '/resources/vendor/Onix/css/app.css',
},
},
}
},
server: {
host: '0.0.0.0',
hmr: {
host: 'localhost'
}
},
});
1 change: 1 addition & 0 deletions Publish/Public/assets/app-4c960b16.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Publish/Public/assets/app-de8ff430.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

597 changes: 597 additions & 0 deletions Publish/Public/assets/grape-f2380d7a.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Publish/Public/assets/onixGrapeJs-328607b6.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Publish/Public/assets/sweetalert2-4370e638.css

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions Publish/Public/assets/sweetalert2-7c60aed3.js

Large diffs are not rendered by default.

44 changes: 11 additions & 33 deletions Publish/Public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,40 @@
{
"_sweetalert2-b81e8371.js": {
"_sweetalert2-7c60aed3.js": {
"css": [
"assets/sweetalert2-a3d69089.css"
"assets/sweetalert2-4370e638.css"
],
"file": "assets/sweetalert2-b81e8371.js"
},
"node_modules/grapesjs/dist/fonts/main-fonts.eot": {
"file": "assets/main-fonts-1fc5d1c7.eot",
"src": "node_modules/grapesjs/dist/fonts/main-fonts.eot"
},
"node_modules/grapesjs/dist/fonts/main-fonts.svg": {
"file": "assets/main-fonts-70c17a49.svg",
"src": "node_modules/grapesjs/dist/fonts/main-fonts.svg"
},
"node_modules/grapesjs/dist/fonts/main-fonts.ttf": {
"file": "assets/main-fonts-adff1e6b.ttf",
"src": "node_modules/grapesjs/dist/fonts/main-fonts.ttf"
},
"node_modules/grapesjs/dist/fonts/main-fonts.woff": {
"file": "assets/main-fonts-c3dd9523.woff",
"src": "node_modules/grapesjs/dist/fonts/main-fonts.woff"
"file": "assets/sweetalert2-7c60aed3.js"
},
"resources/vendor/Onix/css/app.css": {
"file": "assets/app-41f7798b.css",
"file": "assets/app-4c960b16.css",
"isEntry": true,
"src": "resources/vendor/Onix/css/app.css"
},
"resources/vendor/Onix/js/OnixSetup/onixGrapeJs.css": {
"file": "assets/onixGrapeJs-054b482f.css",
"file": "assets/onixGrapeJs-328607b6.css",
"src": "resources/vendor/Onix/js/OnixSetup/onixGrapeJs.css"
},
"resources/vendor/Onix/js/OnixSetup/onixGrapeJs.js": {
"assets": [
"assets/main-fonts-1fc5d1c7.eot",
"assets/main-fonts-c3dd9523.woff",
"assets/main-fonts-adff1e6b.ttf",
"assets/main-fonts-70c17a49.svg"
],
"css": [
"assets/onixGrapeJs-054b482f.css"
"assets/onixGrapeJs-328607b6.css"
],
"file": "assets/grape-b65eca05.js",
"file": "assets/grape-f2380d7a.js",
"imports": [
"_sweetalert2-b81e8371.js"
"_sweetalert2-7c60aed3.js"
],
"isEntry": true,
"src": "resources/vendor/Onix/js/OnixSetup/onixGrapeJs.js"
},
"resources/vendor/Onix/js/app.js": {
"file": "assets/app-a2b59f39.js",
"file": "assets/app-de8ff430.js",
"imports": [
"_sweetalert2-b81e8371.js"
"_sweetalert2-7c60aed3.js"
],
"isEntry": true,
"src": "resources/vendor/Onix/js/app.js"
},
"sweetalert2.css": {
"file": "assets/sweetalert2-a3d69089.css",
"file": "assets/sweetalert2-4370e638.css",
"src": "sweetalert2.css"
}
}
2 changes: 1 addition & 1 deletion src/Controllers/OnixApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function loadBlocks(Request $request)
{
// First we going to scan the path App\OnixComponents and get all the components to array
$blocks = [];
$path = app_path('Onix\Blocks');
$path = app_path('Onix/Blocks');
// Scan the classed files adn get the block data
foreach (scandir($path) as $file) {
if (in_array($file, ['.', '..'])) {
Expand Down
4 changes: 2 additions & 2 deletions src/views/components/layout/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p>ONIX © {{ now()->format('Y') }} - All right reserved</p>
</div>
<div class="grid-flow-col gap-4 md:place-self-center md:justify-self-end">
<a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
{{-- <a><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
class="fill-current">
<path
d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z">
Expand All @@ -27,6 +27,6 @@ class="fill-current">
<path
d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z">
</path>
</svg></a>
</svg></a> --}}
</div>
</footer>
2 changes: 1 addition & 1 deletion src/views/components/layout/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{-- Id used to toogle the side menu --}}
<input id="nav-drawer" type="checkbox" class="drawer-toggle">
{{-- Website content --}}
<div class="flex flex-col drawer-content">
<div class="drawer-content">
<x-onix::layout.navbar />
<x-onix::layout.flash />
<div class="px-6 py-8">
Expand Down
8 changes: 4 additions & 4 deletions src/views/components/layout/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class="inline-block w-6 h-6 stroke-current">
<div class="flex-1 hidden px-2 mx-2 lg:flex">

</div>
<div class="flex-1 lg:flex-none">
{{-- <div class="flex-1 lg:flex-none">
<div class="form-control">
<div class="relative">
<input type="text" placeholder="Search" class="w-full pr-16 input input-primary input-bordered">
Expand All @@ -34,12 +34,12 @@ class="inline-block w-6 h-6 stroke-current">
</button>
</div>
</div>
</div>
</div> --}}
<div class="flex-none">
<x-onix::layout.theme />
</div>
<div class="flex-none">
<div class="dropdown dropdown-end">
{{-- <div class="dropdown dropdown-end">
<div tabindex="0">
<div class="avatar">
<div class="rounded-full w-10 h-10 m-1">
Expand Down Expand Up @@ -71,7 +71,7 @@ class="inline-block w-5 h-5 mr-2 stroke-current">
Logout</a>
</li>
</ul>
</div>
</div> --}}

</div>
</div>
2 changes: 1 addition & 1 deletion src/views/components/layout/sidemenu.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<aside class="flex flex-col justify-start border-r border-base-200 bg-base-100 text-base-content w-80">
<aside class="menu p-4 w-80 min-h-full bg-base-200 text-base-content">
<div
class="sticky inset-x-0 top-0 z-50 hidden w-full py-1 transition duration-200 ease-in-out border-b lg:block border-base-200 bg-base-100">
<div class="mx-auto space-x-1 navbar max-w-none">
Expand Down
14 changes: 10 additions & 4 deletions src/views/content/block/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ class="input input-bordered input-warning w-full max-w-xs" />
</div>
</div>
</div>
<div class="shadow-xl bg-base-300 mt-8 mr-0 mb-0 ml-0 pt-4 pr-10 pb-4 pl-10 flow-root rounded-lg sm:py-2 border-purple-400">
<div class="shadow-xl mt-8 mr-0 mb-0 ml-0 pt-4 pr-10 pb-4 pl-10 flow-root rounded-lg sm:py-2 border-purple-400">
<div class="pt--10 pr-0 pb-10 pl-0">
@foreach ($block as $item)
<x-onix::table.row :item="$item" :mode="'block'" />
@endforeach
@if (count($block) >= 1)
@foreach ($block as $item)
<x-onix::table.row :item="$item" :mode="'block'" />
@endforeach
@else
<div class="text-center">
<p class="text-lg font-bold text-gray-900">No pages found</p>
</div>
@endif
</div>
</div>
</div>
Expand Down
14 changes: 10 additions & 4 deletions src/views/content/page/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ class="input input-bordered input-warning w-full max-w-xs" />
</div>
</div>
</div>
<div class="shadow-xl bg-base-300 mt-8 mr-0 mb-0 ml-0 pt-4 pr-10 pb-4 pl-10 flow-root rounded-lg sm:py-2 border-purple-400">
<div class="shadow-xl mt-8 mr-0 mb-0 ml-0 pt-4 pr-10 pb-4 pl-10 flow-root rounded-lg sm:py-2 border-purple-400">
<div class="pt--10 pr-0 pb-10 pl-0">
@foreach ($pages as $item)
<x-onix::table.row :item="$item" />
@endforeach
@if (count($pages) >= 1)
@foreach ($pages as $item)
<x-onix::table.row :item="$item" />
@endforeach
@else
<div class="text-center">
<p class="text-lg font-bold text-gray-900">No pages found</p>
</div>
@endif
</div>
</div>
</div>
Expand Down

0 comments on commit ac92089

Please sign in to comment.