Compare commits

..

No commits in common. "master" and "service-list" have entirely different histories.

4 changed files with 9 additions and 63 deletions

View File

@ -1,44 +0,0 @@
name: Deploy Wishlist
on:
push:
branches: [ master ]
env:
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }}
jobs:
deploy:
runs-on: ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create .env file from secrets
run: |
echo "$ENV_PROD" > .env
if [ ! -s .env ]; then
echo "Error: .env file is empty!"
exit 1
fi
env:
ENV_PROD: ${{ secrets.ENV_PROD }}
- name: Install PHP dependencies
run: composer install
- name: Install Node.js dependencies
run: npm i
- name: Build assets
run: npm run build
- name: Copy files to deployment directory
run: |
chmod -R 777 ./
sudo rsync -av ./ ${DEPLOY_DIR}/
- name: Restart PHP service
run: sudo systemctl restart php8.2-fpm
- name: Restart Nginx
run: sudo systemctl restart nginx

2
.gitignore vendored
View File

@ -17,5 +17,3 @@ yarn-error.log
/.fleet /.fleet
/.idea /.idea
/.vscode /.vscode
composer.lock
package-lock.json

View File

@ -43,19 +43,15 @@ export default {
<v-skeleton-loader v-if="fetching" class="bg-grey-darken-3" type="card"/> <v-skeleton-loader v-if="fetching" class="bg-grey-darken-3" type="card"/>
<div class="pt-5 h-100" v-else> <div class="pt-5 h-100" v-else>
<v-row class="ma-0" v-for="n in Math.ceil(links.length / 3)" v-if="isWide"> <v-row class="ma-0" v-for="n in Math.ceil(links.length / 3)" v-if="isWide">
<v-col class="d-flex justify-center align-center w-33" v-for="j in 3"> <v-col class="d-flex justify-center align-center" v-for="j in 3">
<v-btn v-if="links[(n - 1) * 3 + j - 1]" class="w-100 h-100 pa-5 text-white mt-5 mb-5 bg-btn text-center" :href="links[(n - 1) * 3 + j - 1].link" target="_blank"> <v-btn v-if="links[(n - 1) * 3 + j - 1]" class="w-100 h-100 pa-5 text-white mt-5 mb-5 bg-btn" :href="links[(n - 1) * 3 + j - 1].link" target="_blank">
<template v-slot:default> {{ links[(n - 1) * 3 + j - 1].name }}
<span class="txt-wrap">{{ links[(n - 1) * 3 + j - 1].name }}</span>
</template>
</v-btn> </v-btn>
</v-col> </v-col>
</v-row> </v-row>
<div v-else class="ma-0"> <div v-else class="ma-0">
<v-btn class="w-100 h-100 pa-5 text-white mt-5 mb-5 bg-btn text-center" v-for="link in links" :href="link.link" target="_blank"> <v-btn class="w-100 h-100 pa-5 text-white mt-5 mb-5 bg-btn" v-for="link in links" :href="link.link" target="_blank">
<template v-slot:default> {{ link.name }}
<span class="txt-wrap">{{ link.name }}</span>
</template>
</v-btn> </v-btn>
</div> </div>
</div> </div>
@ -79,8 +75,4 @@ export default {
.bg-btn { .bg-btn {
background-color: #E08E79 background-color: #E08E79
} }
.txt-wrap {
white-space: wrap!important;
}
</style> </style>

View File

@ -14,10 +14,6 @@ use Illuminate\Support\Facades\Route;
*/ */
Route::get('/', function () { Route::get('/', function () {
return view('ServiceLinks/links');
});
Route::get('/schedule', function () {
return view('welcome'); return view('welcome');
}); });
@ -37,6 +33,10 @@ Route::get('/friday', function () {
return view('friday/friday'); return view('friday/friday');
}); });
Route::get('/services_list', function () {
return view('ServiceLinks/links');
});
Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download'); Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download');