Skip to content

Commit

Permalink
remove unused files and use webpack encore instead of laravel mix
Browse files Browse the repository at this point in the history
  • Loading branch information
KHOUBZA Younes committed May 18, 2022
1 parent ae235dc commit fcc921d
Show file tree
Hide file tree
Showing 462 changed files with 55,179 additions and 37,916 deletions.
19 changes: 4 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
source "https://rubygems.org"
source 'https://rubygems.org'

gem "jekyll", "~> 4.1.1"
gem "minima", "~> 2.5"
gem "kramdown", ">= 2.3.1"
gem 'jekyll'

group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-sitemap"
gem "jekyll-redirect-from"
gem 'jekyll-sitemap'
gem 'jekyll-seo-tag'
end

platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "webrick", "~> 1.7"
28 changes: 6 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,21 @@ GEM
http_parser.rb (0.8.0)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
jekyll (4.2.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-feed (0.16.0)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.8.0)
Expand All @@ -50,10 +46,6 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.7)
Expand All @@ -65,25 +57,17 @@ GEM
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
webrick (1.7.0)

PLATFORMS
x86_64-linux

DEPENDENCIES
jekyll (~> 4.1.1)
jekyll-feed (~> 0.12)
jekyll-redirect-from
jekyll
jekyll-seo-tag
jekyll-sitemap
kramdown (>= 2.3.1)
minima (~> 2.5)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
webrick (~> 1.7)

BUNDLED WITH
2.3.13
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# php-flasher.github.io

```shell
npm i
bundle exec jekyll serve --livereload
```
14 changes: 8 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-redirect-from
- jekyll-seo-tag

defaults:
- scope:
path: ""
values:
layout: "default"
layout: "main"
published_at: "2020-11-28"
updated_at: "2022-05-08"
updated_at: "2022-05-18"

exclude:
- "*.config.js"
- "package*.json"
- "assets"
- "node_modules"
- assets
- _data/manifest.yml
- node_modules
- CNAME
- "Gemfile*"
- ".idea"

Expand Down
71 changes: 71 additions & 0 deletions _data/entrypoints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"entrypoints": {
"homepage": {
"js": [
"/dist/runtime.js",
"/dist/homepage.js"
],
"css": [
"/dist/assets_css__common_pcss.css",
"/dist/homepage.css"
]
},
"main": {
"js": [
"/dist/runtime.js",
"/dist/main.js"
],
"css": [
"/dist/assets_css__common_pcss.css",
"/dist/main.css"
]
},
"adapter/flasher": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/adapter/flasher.js"
]
},
"adapter/noty": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/vendors-node_modules_flasher_flasher-noty_dist_index_js.js",
"/dist/adapter/noty.js"
]
},
"adapter/notyf": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/vendors-node_modules_flasher_flasher-notyf_dist_index_js.js",
"/dist/adapter/notyf.js"
]
},
"adapter/pnotify": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/vendors-node_modules_flasher_flasher-pnotify_dist_index_js.js",
"/dist/adapter/pnotify.js"
]
},
"adapter/sweetalert": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/vendors-node_modules_flasher_flasher-sweetalert_dist_index_js.js",
"/dist/adapter/sweetalert.js"
]
},
"adapter/toastr": {
"js": [
"/dist/runtime.js",
"/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"/dist/vendors-node_modules_flasher_flasher-toastr_dist_index_js.js",
"/dist/adapter/toastr.js"
]
}
}
}
34 changes: 6 additions & 28 deletions _data/flasher.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
root_script:
dev: '/static/packages/flasher/dist/flasher.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher.min.js'

/docs/adapter/toastr/:
handler: 'toastr'
dev: '/static/packages/toastr/dist/flasher-toastr.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher-toastr.min.js'

/docs/adapter/noty/:
handler: 'noty'
dev: '/static/packages/noty/dist/flasher-noty.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher-noty.min.js'

/docs/adapter/notyf/:
handler: 'notyf'
dev: '/static/packages/notyf/dist/flasher-notyf.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher-notyf.min.js'

/docs/adapter/sweetalert/:
handler: 'sweetalert'
dev: '/static/packages/sweetalert/dist/flasher-sweetalert.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher-sweetalert.min.js'

/docs/adapter/pnotify/:
handler: 'pnotify'
dev: '/static/packages/pnotify/dist/flasher-pnotify.js'
build: 'https://cdn.jsdelivr.net/npm/@flasher/[email protected]/dist/flasher-pnotify.min.js'
/: 'adapter/flasher'
/docs/adapter/toastr/: 'adapter/toastr'
/docs/adapter/noty/: 'adapter/noty'
/docs/adapter/notyf/: 'adapter/notyf'
/docs/adapter/sweetalert/: 'adapter/sweetalert'
/docs/adapter/pnotify/: 'adapter/pnotify'



Expand Down
3 changes: 0 additions & 3 deletions _data/manifest.json

This file was deleted.

46 changes: 46 additions & 0 deletions _data/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"dist/homepage.css": "/dist/homepage.css",
"dist/homepage.js": "/dist/homepage.js",
"dist/main.css": "/dist/main.css",
"dist/main.js": "/dist/main.js",
"dist/adapter/flasher.js": "/dist/adapter/flasher.js",
"dist/adapter/noty.js": "/dist/adapter/noty.js",
"dist/adapter/notyf.js": "/dist/adapter/notyf.js",
"dist/adapter/pnotify.js": "/dist/adapter/pnotify.js",
"dist/adapter/sweetalert.js": "/dist/adapter/sweetalert.js",
"dist/adapter/toastr.js": "/dist/adapter/toastr.js",
"dist/runtime.js": "/dist/runtime.js",
"dist/vendors-node_modules_flasher_flasher_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher_dist_index_js.js",
"dist/vendors-node_modules_flasher_flasher-toastr_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher-toastr_dist_index_js.js",
"dist/vendors-node_modules_flasher_flasher-sweetalert_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher-sweetalert_dist_index_js.js",
"dist/vendors-node_modules_flasher_flasher-pnotify_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher-pnotify_dist_index_js.js",
"dist/vendors-node_modules_flasher_flasher-notyf_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher-notyf_dist_index_js.js",
"dist/vendors-node_modules_flasher_flasher-noty_dist_index_js.js": "/dist/vendors-node_modules_flasher_flasher-noty_dist_index_js.js",
"dist/assets_css__common_pcss.css": "/dist/assets_css__common_pcss.css",
"dist/fonts/fa-duotone-900.ttf": "/dist/fonts/fa-duotone-900.7aaed888.ttf",
"dist/fonts/fa-thin-100.ttf": "/dist/fonts/fa-thin-100.e979819d.ttf",
"dist/fonts/fa-light-300.ttf": "/dist/fonts/fa-light-300.c92b45dd.ttf",
"dist/fonts/fa-regular-400.ttf": "/dist/fonts/fa-regular-400.ea55734f.ttf",
"dist/fonts/fa-solid-900.ttf": "/dist/fonts/fa-solid-900.cd4538f7.ttf",
"dist/images/flasher-usage.png": "/dist/images/flasher-usage.png",
"dist/fonts/fa-thin-100.woff2": "/dist/fonts/fa-thin-100.6d7129de.woff2",
"dist/fonts/fa-duotone-900.woff2": "/dist/fonts/fa-duotone-900.0f4932ef.woff2",
"dist/fonts/fa-light-300.woff2": "/dist/fonts/fa-light-300.3a5e485d.woff2",
"dist/fonts/fa-regular-400.woff2": "/dist/fonts/fa-regular-400.0119858a.woff2",
"dist/fonts/fa-solid-900.woff2": "/dist/fonts/fa-solid-900.dd93dc21.woff2",
"dist/images/render-notifications.png": "/dist/images/render-notifications.png",
"dist/fonts/fa-brands-400.ttf": "/dist/fonts/fa-brands-400.aa78803d.ttf",
"dist/images/motion-notifications.png": "/dist/images/motion-notifications.png",
"dist/fonts/fa-brands-400.woff2": "/dist/fonts/fa-brands-400.7fe6c951.woff2",
"dist/images/twitter-card.png": "/dist/images/twitter-card.png",
"dist/images/younes-khoubza.jpeg": "/dist/images/younes-khoubza.jpeg",
"dist/fonts/fa-v4compatibility.ttf": "/dist/fonts/fa-v4compatibility.a6c47864.ttf",
"dist/images/favicon-16x16.png": "/dist/images/favicon-16x16.png",
"dist/images/favicon-32x32.png": "/dist/images/favicon-32x32.png",
"dist/images/favicon.png": "/dist/images/favicon.png",
"dist/images/logo.png": "/dist/images/logo.png",
"dist/images/php-flasher.png": "/dist/images/php-flasher.png",
"dist/fonts/fa-v4compatibility.woff2": "/dist/fonts/fa-v4compatibility.b76a469a.woff2",
"dist/images/twitter.svg": "/dist/images/twitter.svg",
"dist/images/squares.svg": "/dist/images/squares.svg"
}
11 changes: 6 additions & 5 deletions _data/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
<i class="fa-brands fa-github text-black mr-1"></i> Github: 'https://github.com/php-flasher/php-flasher'

<i class="fa-duotone fa-bars-sort"></i> Frameworks:
<i class="fa-brands fa-symfony text-black mr-1"></i> Symfony: '/docs/framework/symfony/'
<i class="fa-brands fa-laravel text-red-900 mr-1"></i> Laravel: '/docs/framework/laravel/'
<i class="fa-brands fa-laravel text-red-900 mr-1"></i> Livewire: '/docs/framework/livewire/'
<i class="fa-brands fa-symfony fa-lg text-black mr-1"></i> Symfony: '/docs/framework/symfony/'
<i class="fa-brands fa-laravel fa-lg text-red-900 mr-1"></i> Laravel: '/docs/framework/laravel/'
<i class="fa-brands fa-laravel fa-lg text-red-900 mr-1"></i> Livewire: '/docs/framework/livewire/'

<i class="fa-duotone fa-bars-sort"></i> Adapters:
Toastr: '/docs/adapter/toastr/'
Noty: '/docs/adapter/noty/'
Notyf: '/docs/adapter/notyf/'
Toastr: '/docs/adapter/toastr/'
Sweetalert: '/docs/adapter/sweetalert/'
Notyf: '/docs/adapter/notyf/'
Pnotify: '/docs/adapter/pnotify/'

6 changes: 3 additions & 3 deletions _data/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: "PHP flasher"
tagline: "A powerful and flexible flash notifications system for PHP"
description: "A powerful and flexible flash notifications system for PHP"
title: "PHPFlasher"
tagline: "A powerful and flexible flash notification system for PHP"
description: "A powerful and flexible flash notification system for PHP"
version: 1.0
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="bg-indigo-900 pt-10 pb-10">
<div class="max-w-xs mx-auto text-center text-md leading-loose">
<img src="/static/younes-khoubza.jpeg" alt="Younes" class="inline rounded-full h-20 w-20 border-gray-100 border-2"/>
<img src="/dist/images/younes-khoubza.jpeg" alt="Younes" class="inline rounded-full h-20 w-20 border-gray-100 border-2"/>
<p class="text-white">
<span class="text-gray-300">PHP<span class="text-gray-400">Flasher</span></span> is a project by <a class="text-indigo-300" target="_blank" href="https://www.linkedin.com/in/younes-khoubza/">Younes KHOUBZA</a>.
</p>
Expand Down
53 changes: 53 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>

{% if site.data.project.description %}
<meta name="description" content="{{ site.data.project.description }}"/>
{% endif %}

{% seo %}

<title>{{ page.title }} - {{ site.data.project.title }}</title>

<link rel="icon" type="image/png" sizes="32x32" href="/dist/images/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/dist/images/favicon-16x16.png"/>
<link rel="icon" type="image/png" href="/dist/images/favicon.png"/>

<link href="https://fonts.googleapis.com/css?family=Raleway|Varela+Round" rel="stylesheet"/>

{% for link in site.data.entrypoints['entrypoints'][page.layout]['css'] %}
<link href="{{ link }}" rel="stylesheet"/>
{% endfor %}

{% for link in site.data.entrypoints['entrypoints'][page.layout]['js'] %}
<script defer src="{{ link }}"></script>
{% endfor %}

{% if site.data.flasher contains page.url %}
{% assign adapter = site.data.flasher[page.url] %}
{% for link in site.data.entrypoints['entrypoints'][adapter]['css'] %}
<link href="{{ link }}" rel="stylesheet"/>
{% endfor %}

{% for link in site.data.entrypoints['entrypoints'][adapter]['js'] %}
{% unless link contains '/dist/runtime.' %}
<script defer src="{{ link }}"></script>
{% endunless %}
{% endfor %}
{% endif %}


{% unless site.data.dev.dev_mode %}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-T4D78SM7TC"></script>
<script defer>
window.dataLayer = window.dataLayer || [];

function gtag() {
dataLayer.push(arguments);
}

gtag('js', new Date());
gtag('config', 'G-T4D78SM7TC');
</script>
{% endunless %}
Loading

0 comments on commit fcc921d

Please sign in to comment.