refactor: remove assets from repository (#4759)
BREAKING CHANGE: The assets are no longer embedded in source code: javascript, css, font files. Run `yarn install` then `yarn run production` to recreate them from sources, or download a [release file](https://github.com/monicahq/monica/releases) that contains compiled files. BREAKING CHANGE: For Heroku users: You'll have to manually go to `Settings` > `Buildpacks` and add buildpack: `nodejs`. See [this doc](https://github.com/monicahq/monica/blob/master/docs/installation/providers/heroku.md#update-from-2x-to-3x). BREAKING CHANGE: See more information about how to install a Monica instance [here](https://github.com/monicahq/monica/tree/master/docs/installation).
This commit is contained in:
+22
-16
@@ -1,24 +1,30 @@
|
||||
/vendor
|
||||
/resources/vendor
|
||||
.scannerwork/
|
||||
/node_modules
|
||||
/public/storage
|
||||
/persist
|
||||
Homestead.yaml
|
||||
Homestead.json
|
||||
.env
|
||||
cypress.env.json
|
||||
/public/css
|
||||
/public/fonts
|
||||
/public/hot
|
||||
/public/js
|
||||
/public/storage
|
||||
/public/mix-manifest.json
|
||||
/resources/vendor
|
||||
/results
|
||||
/storage/oauth-private.key
|
||||
/storage/oauth-public.key
|
||||
.DS_Store
|
||||
npm-debug.log*
|
||||
/results
|
||||
.deploy.json
|
||||
yarn-error.log
|
||||
/tests/cypress/screenshots
|
||||
/tests/cypress/videos
|
||||
php-extensions-*.tar.bz2
|
||||
monicadump.sql
|
||||
.scannerwork/
|
||||
.phpunit.result.cache
|
||||
/vendor
|
||||
.composer
|
||||
.env
|
||||
.deploy.json
|
||||
.DS_Store
|
||||
.idea
|
||||
.phpunit.result.cache
|
||||
.sentry-release
|
||||
cypress.env.json
|
||||
Homestead.yaml
|
||||
Homestead.json
|
||||
monicadump.sql
|
||||
npm-debug.log*
|
||||
php-extensions-*.tar.bz2
|
||||
yarn-error.log
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
"relationship",
|
||||
"PRM"
|
||||
],
|
||||
"buildpacks": [
|
||||
{
|
||||
"url": "heroku/php"
|
||||
},
|
||||
{
|
||||
"url": "heroku/nodejs"
|
||||
}
|
||||
],
|
||||
"addons": [
|
||||
{
|
||||
"plan": "jawsdb:kitefin"
|
||||
@@ -23,7 +31,7 @@
|
||||
},
|
||||
"env": {
|
||||
"APP_KEY": {
|
||||
"description": "Please change this to a 32-character string. For example run `pwgen -s 32 1` and copy/paste the value.",
|
||||
"description": "Please change this to a 32-character string. For example run `echo -n 'base64:'; openssl rand -base64 32` and copy/paste the value.",
|
||||
"value": "change-me-to-a-random-string----"
|
||||
},
|
||||
"APP_URL": {
|
||||
|
||||
@@ -71,6 +71,9 @@ You should check out a tagged version of Monica since `master` branch may not al
|
||||
|
||||
```sh
|
||||
cd /var/www/monica
|
||||
# Get latest tags from GitHub
|
||||
git fetch
|
||||
# Clone the desired version
|
||||
git checkout tags/v2.18.0
|
||||
```
|
||||
|
||||
@@ -97,8 +100,9 @@ Open the cPanel file manager and navigate to the directory in which you want to
|
||||
- set the `APP_ENV` variable to `production`, `local` is only used for the development version. Beware: setting `APP_ENV` to `production` will force HTTPS. Skip this if you're running Monica locally.
|
||||
3. Log into the cPanel server via SSH and navigate to the directory in which you want to install Monica.
|
||||
4. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
5. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
6. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
5. Run `yarn install` to install frontend packages, then `yarn run production` to build the assets (js, css).
|
||||
6. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
7. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
|
||||
The `setup:production` command will run migrations scripts for database, and flush all cache for config, route, and view, as an optimization process.
|
||||
As the configuration of the application is cached, any update on the `.env` file will not be detected after that. You may have to run `php artisan config:cache` manually after every update of `.env` file.
|
||||
|
||||
@@ -21,6 +21,8 @@ Monica depends on the following:
|
||||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||
- PHP 7.4+
|
||||
- [Composer](https://getcomposer.org/)
|
||||
- [Node.js](https://nodejs.org)
|
||||
- [Yarn](https://yarnpkg.com)
|
||||
- MySQL / MariaDB
|
||||
|
||||
An editor like vim or nano should be useful too.
|
||||
@@ -53,6 +55,19 @@ sudo apt install -y php php-bcmath php-curl php-gd php-gmp php-imagick \
|
||||
sudo apt install -y composer
|
||||
```
|
||||
|
||||
**Node.js:** Install node.js with package manager.
|
||||
|
||||
```sh
|
||||
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo bash -
|
||||
sudo apt install -y nodejs
|
||||
```
|
||||
|
||||
**Yarn:** Install yarn with npm.
|
||||
|
||||
```sh
|
||||
sudo npm install --global yarn
|
||||
```
|
||||
|
||||
**MariaDB:** Install MariaDB. Note that this only installs the package, but does not setup Mysql. This is done later in the instructions:
|
||||
|
||||
```sh
|
||||
@@ -77,8 +92,10 @@ Find the latest official version on the [release page](https://github.com/monica
|
||||
|
||||
```sh
|
||||
cd /var/www/monica
|
||||
# Get latest tags from GitHub
|
||||
sudo git fetch
|
||||
# Clone the desired version
|
||||
sudo git checkout tags/v1.6.2
|
||||
sudo git checkout tags/v2.18.0
|
||||
```
|
||||
|
||||
### 2. Setup the database
|
||||
@@ -125,16 +142,17 @@ exit
|
||||
`cd /var/www/monica` then run these steps with `sudo`:
|
||||
|
||||
1. `cp .env.example .env` to create your own version of all the environment variables needed for the project to work.
|
||||
1. Update `.env` to your specific needs
|
||||
2. Update `.env` to your specific needs
|
||||
- set `DB_USERNAME` and `DB_PASSWORD` with the settings used behind.
|
||||
- configure a [mailserver](/docs/installation/mail.md) for registration & reminders to work correctly.
|
||||
- set the `APP_ENV` variable to `production`, `local` is only used for the development version. Beware: setting `APP_ENV` to `production` will force HTTPS. Skip this if you're running Monica locally.
|
||||
1. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
1. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
1. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
3. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
4. Run `yarn install` to install frontend packages, then `yarn run production` to build the assets (js, css).
|
||||
5. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
6. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
- You can use `email` and `password` parameter to setup a first account directly: `php artisan setup:production --email=your@email.com --password=yourpassword -v`
|
||||
1. _Optional_: Setup the queues with Redis, Beanstalk or Amazon SQS: see optional instruction of [generic installation](generic.md#setup-queues)
|
||||
1. _Optional_: Setup the access tokens to use the API follow optional instruction of [generic installation](generic.md#setup-access-tokens)
|
||||
7. _Optional_: Setup the queues with Redis, Beanstalk or Amazon SQS: see optional instruction of [generic installation](generic.md#setup-queues)
|
||||
8. _Optional_: Setup the access tokens to use the API follow optional instruction of [generic installation](generic.md#setup-access-tokens)
|
||||
|
||||
### 4. Configure cron job
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ If you don't want to use Docker, the best way to setup the project is to use the
|
||||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||
- PHP 7.4+
|
||||
- [Composer](https://getcomposer.org/)
|
||||
- [Node.js](https://nodejs.org)
|
||||
- [Yarn](https://yarnpkg.com)
|
||||
- [MySQL](https://www.mysql.com/)
|
||||
- Optional: Redis or Beanstalk
|
||||
|
||||
@@ -55,6 +57,15 @@ php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer
|
||||
php -r "unlink('composer-setup.php');"
|
||||
```
|
||||
|
||||
**Node.js:** Install node.js 14+ minimum
|
||||
|
||||
|
||||
**Yarn:** Install yarn using npm
|
||||
|
||||
```sh
|
||||
npm install --global yarn
|
||||
```
|
||||
|
||||
**Mysql:** Install Mysql 5.7+
|
||||
|
||||
### Types of databases
|
||||
@@ -78,6 +89,9 @@ You should check out a tagged version of Monica since `master` branch may not al
|
||||
|
||||
```sh
|
||||
cd /var/www/monica
|
||||
# Get latest tags from GitHub
|
||||
git fetch
|
||||
# Clone the desired version
|
||||
git checkout tags/v2.18.0
|
||||
```
|
||||
|
||||
@@ -130,8 +144,9 @@ exit
|
||||
- configure a [mailserver](/docs/installation/mail.md) for registration & reminders to work correctly.
|
||||
- set the `APP_ENV` variable to `production`, `local` is only used for the development version. Beware: setting `APP_ENV` to `production` will force HTTPS. Skip this if you're running Monica locally.
|
||||
3. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
4. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
5. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
4. Run `yarn install` to install frontend packages, then `yarn run production` to build the assets (js, css).
|
||||
5. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
6. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
|
||||
The `setup:production` command will run migrations scripts for database, and flush all cache for config, route, and view, as an optimization process.
|
||||
As the configuration of the application is cached, any update on the `.env` file will not be detected after that. You may have to run `php artisan config:cache` manually after every update of `.env` file.
|
||||
|
||||
@@ -10,6 +10,7 @@ Monica can be deployed on Heroku using the button below:
|
||||
- [Optional: Generate a Password grant client for OAuth access](#optional-generate-a-password-grant-client-for-oauth-access)
|
||||
- [Limitations](#limitations)
|
||||
- [Updating Heroku instance](#updating-heroku-instance)
|
||||
- [Update from 2.x to 3.x](#update-from-2x-to-3x)
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -126,3 +127,11 @@ You can update your Monica instance to the latest version by cloning the reposit
|
||||
Clone the Monica repository to your local environment by `git clone https://github.com/monicahq/monica`, and add heroku git repository by `heroku git:remote -a (heroku app name)`. Then, push to heroku by `git push heroku master`. Heroku will build and update the repository, automatically.
|
||||
|
||||
See more information about updating Monica (including Heroku-spcific things) [here](https://github.com/monicahq/monica/blob/master/docs/installation/update.md).
|
||||
|
||||
|
||||
## Update from 2.x to 3.x
|
||||
|
||||
If you already deployed a 2.x Monica instance, when you will upgrade to 3.x, you will have to manually add `node.js` as a buildpack:
|
||||
- Go to `Settings`
|
||||
- Under `Buildpacks`, add a new buildpack, and select `nodejs`
|
||||
- `heroku/nodejs` will be selected automatically
|
||||
|
||||
@@ -22,6 +22,8 @@ Monica depends on the following:
|
||||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||
- PHP 7.4+
|
||||
- [Composer](https://getcomposer.org/)
|
||||
- [Node.js](https://nodejs.org)
|
||||
- [Yarn](https://yarnpkg.com)
|
||||
- [MySQL](https://support.rackspace.com/how-to/installing-mysql-server-on-ubuntu/)
|
||||
|
||||
**Apache:** If it doesn't come pre-installed with your server, follow the [instructions here](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04#step-1-install-apache-and-allow-in-firewall) to setup Apache and config the firewall.
|
||||
@@ -53,9 +55,9 @@ Then install php 7.4 with these extensions:
|
||||
|
||||
```sh
|
||||
sudo apt update
|
||||
sudo apt install -y php7.4 php7.4-bcmath php7.4-cli php7.4-curl php7.4-common php7.4-fpm \
|
||||
php7.4-gd php7.4-gmp php7.4-imagick php7.4-intl php7.4-json php7.4-mbstring \
|
||||
php7.4-mysql php7.4-opcache php7.4-redis php7.4-xml php7.4-zip
|
||||
sudo apt install -y php7.4 php7.4-bcmath php7.4-cli php7.4-curl php7.4-common \
|
||||
php7.4-fpm php7.4-gd php7.4-gmp php7.4-imagick php7.4-intl php7.4-json \
|
||||
php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-redis php7.4-xml php7.4-zip
|
||||
```
|
||||
|
||||
**Composer:** After you're done installing PHP, you'll need the [Composer](https://getcomposer.org/download/) dependency manager.
|
||||
@@ -69,6 +71,19 @@ rm -f composer-setup.php
|
||||
|
||||
(or you can follow instruction on [getcomposer.org](https://getcomposer.org/download/) page)
|
||||
|
||||
**Node.js:** Install node.js with package manager.
|
||||
|
||||
```sh
|
||||
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||
sudo apt install -y nodejs
|
||||
```
|
||||
|
||||
**Yarn:** Install yarn with npm.
|
||||
|
||||
```sh
|
||||
sudo npm install --global yarn
|
||||
```
|
||||
|
||||
**Mysql:** Install Mysql 5.7. Note that this only installs the package, but does not setup Mysql. This is done later in the instructions:
|
||||
|
||||
```sh
|
||||
@@ -97,7 +112,10 @@ You should check out a tagged version of Monica since `master` branch may not al
|
||||
|
||||
```sh
|
||||
cd /var/www/monica
|
||||
git checkout tags/v2.2.1
|
||||
# Get latest tags from GitHub
|
||||
git fetch
|
||||
# Clone the desired version
|
||||
git checkout tags/v2.18.0
|
||||
```
|
||||
|
||||
### 2. Setup the database
|
||||
@@ -138,16 +156,17 @@ exit
|
||||
`cd /var/www/monica` then run these steps:
|
||||
|
||||
1. `cp .env.example .env` to create your own version of all the environment variables needed for the project to work.
|
||||
1. Update `.env` to your specific needs
|
||||
2. Update `.env` to your specific needs
|
||||
- set `DB_USERNAME` and `DB_PASSWORD` with the settings used behind.
|
||||
- configure a [mailserver](/docs/installation/mail.md) for registration & reminders to work correctly.
|
||||
- set the `APP_ENV` variable to `production`, `local` is only used for the development version. Beware: setting `APP_ENV` to `production` will force HTTPS. Skip this if you're running Monica locally.
|
||||
1. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
1. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
1. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
3. Run `composer install --no-interaction --no-dev` to install all packages.
|
||||
4. Run `yarn install` to install frontend packages, then `yarn run production` to build the assets (js, css).
|
||||
5. Run `php artisan key:generate` to generate an application key. This will set `APP_KEY` with the right value automatically.
|
||||
6. Run `php artisan setup:production -v` to run the migrations, seed the database and symlink folders.
|
||||
- You can use `email` and `password` parameter to setup a first account directly: `php artisan setup:production --email=your@email.com --password=yourpassword -v`
|
||||
1. _Optional_: Setup the queues with Redis, Beanstalk or Amazon SQS: see optional instruction of [generic installation](generic.md#setup-queues)
|
||||
1. _Optional_: Setup the access tokens to use the API follow optional instruction of [generic installation](generic.md#setup-access-tokens)
|
||||
7. _Optional_: Setup the queues with Redis, Beanstalk or Amazon SQS: see optional instruction of [generic installation](generic.md#setup-queues)
|
||||
8. _Optional_: Setup the access tokens to use the API follow optional instruction of [generic installation](generic.md#setup-access-tokens)
|
||||
|
||||
### 4. Configure cron job
|
||||
|
||||
|
||||
@@ -14,26 +14,27 @@ Monica uses the concept of releases and tries to follow
|
||||
or if you have installed Monica on your own server, you need to follow the steps below to update it, **every single time**, or you will run into problems.
|
||||
|
||||
1. Always make a backup of your data before upgrading.
|
||||
1. Check that your backup is valid.
|
||||
1. Read the [release notes](https://github.com/monicahq/monica/blob/master/CHANGELOG.md) to check for breaking changes.
|
||||
1. Update sources:
|
||||
2. Check that your backup is valid.
|
||||
3. Read the [release notes](https://github.com/monicahq/monica/blob/master/CHANGELOG.md) to check for breaking changes.
|
||||
4. Update sources:
|
||||
1. Consider check out a tagged version of Monica since `master` branch may not always be stable.
|
||||
Find the latest official version on the [release page](https://github.com/monicahq/monica/releases)
|
||||
```sh
|
||||
# Get latest tags from GitHub
|
||||
git fetch
|
||||
# Clone the desired version
|
||||
git checkout tags/v1.6.2
|
||||
git checkout tags/v2.18.0
|
||||
```
|
||||
1. Or check out `master`
|
||||
2. Or check out `master`
|
||||
```sh
|
||||
git pull origin master
|
||||
```
|
||||
1. Update the dependencies of the project:
|
||||
5. Update the dependencies of the project:
|
||||
```sh
|
||||
composer install --no-interaction --no-dev
|
||||
```
|
||||
1. Then, run the following command to make the proper update:
|
||||
6. Run `yarn install` to install frontend packages, then `yarn run production` to build the assets (js, css).
|
||||
7. Then, run the following command to make the proper update:
|
||||
```sh
|
||||
php artisan monica:update --force
|
||||
```
|
||||
|
||||
+4
-3
@@ -9,6 +9,7 @@
|
||||
"prod": "yarn production",
|
||||
"production": "mix --production",
|
||||
"preproduction": "php artisan lang:generate -vvv",
|
||||
"heroku-postbuild": "yarn run production",
|
||||
"e2e": "cypress run",
|
||||
"e2e:chrome": "cypress run --browser chrome",
|
||||
"e2e:record": "cypress run --record",
|
||||
@@ -19,12 +20,12 @@
|
||||
"inst": "yarn install --frozen-lockfile",
|
||||
"lint": "eslint --ext .js,.vue *.js .*.js resources/js/",
|
||||
"lint:cypress": "eslint --ext .js tests/cypress/",
|
||||
"lint:all": "yarn lint & yarn lint:cypress",
|
||||
"lint:fix": "yarn lint --fix & yarn lint:cypress --fix",
|
||||
"lint:all": "yarn run lint & yarn run lint:cypress",
|
||||
"lint:fix": "yarn run lint --fix & yarn run lint:cypress --fix",
|
||||
"snyk-protect": "snyk protect",
|
||||
"prepublish": "yarn run snyk-protect",
|
||||
"delete:reports": "rm results/cypress/* || true",
|
||||
"pree2e": "npm run delete:reports",
|
||||
"pree2e": "yarn run delete:reports",
|
||||
"migrate": "DB_CONNECTION=testing php artisan migrate:fresh && DB_CONNECTION=testing php artisan db:seed",
|
||||
"pretest": "yarn run migrate",
|
||||
"test": "vendor/bin/phpunit",
|
||||
|
||||
Vendored
-29
File diff suppressed because one or more lines are too long
Vendored
-29
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
.StripeElement{background-color:#fff;height:45px;width:100%;padding:13px 12px;border-radius:4px;border:1px solid rgba(0,0,0,.3);transition:box-shadow .15s ease}.StripeElement--focus{box-shadow:0 1px 3px 0 #dcdcdc}.StripeElement--invalid{border-color:#d9534f}.StripeElement--webkit-autofill{background-color:#fffacd!important}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 434 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Vendored
-2
File diff suppressed because one or more lines are too long
@@ -1,8 +0,0 @@
|
||||
/**
|
||||
* WebAuthn client.
|
||||
*
|
||||
* This file is part of asbiin/laravel-webauthn project.
|
||||
*
|
||||
* @copyright Alexis SAETTLER © 2019
|
||||
* @license MIT
|
||||
*/
|
||||
@@ -1,8 +0,0 @@
|
||||
/**
|
||||
* WebAuthn client.
|
||||
*
|
||||
* This file is part of asbiin/laravel-webauthn project.
|
||||
*
|
||||
* @copyright Alexis SAETTLER © 2019
|
||||
* @license MIT
|
||||
*/
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
[]
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var l=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}o.m=r,e=[],o.O=(r,t,n,l)=>{if(!t){var i=1/0;for(d=0;d<e.length;d++){for(var[t,n,l]=e[d],a=!0,u=0;u<t.length;u++)(!1&l||i>=l)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,l<i&&(i=l));a&&(e.splice(d--,1),r=n())}return r}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,n,l]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={929:0,829:0,893:0,475:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,l,[i,a,u]=t,d=0;for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var f=u(o);for(r&&r(t);d<i.length;d++)l=i[d],o.o(e,l)&&e[l]&&e[l][0](),e[i[d]]=0;return o.O(f)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
|
||||
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
|
||||
Vendored
-2
File diff suppressed because one or more lines are too long
@@ -1,159 +0,0 @@
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.5.1
|
||||
* https://jquery.com/
|
||||
*
|
||||
* Includes Sizzle.js
|
||||
* https://sizzlejs.com/
|
||||
*
|
||||
* Copyright JS Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* https://jquery.org/license
|
||||
*
|
||||
* Date: 2020-05-04T22:49Z
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Sizzle CSS Selector Engine v2.3.5
|
||||
* https://sizzlejs.com/
|
||||
*
|
||||
* Copyright JS Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* https://js.foundation/
|
||||
*
|
||||
* Date: 2020-03-14
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Vue.js v2.6.11
|
||||
* (c) 2014-2019 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.15.0
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap util.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* vuejs-datepicker v2.0.2
|
||||
* (c) 2016-2019 Charlie Kassel
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* clipboard.js v2.0.4
|
||||
* https://zenorocha.github.io/clipboard.js
|
||||
*
|
||||
* Licensed MIT © Zeno Rocha
|
||||
*/
|
||||
|
||||
/*!
|
||||
* pretty-checkbox-vue v1.1.9
|
||||
* (c) 2017-2018 Hamed Ehtesham
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap button.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap modal.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap collapse.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap dropdown.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
/*!
|
||||
* Bootstrap tab.js v4.5.1 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
@@ -1,181 +0,0 @@
|
||||
/*!
|
||||
* Bootstrap button.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap collapse.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap dropdown.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap modal.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap tab.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Bootstrap util.js v4.6.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Sizzle CSS Selector Engine v2.3.6
|
||||
* https://sizzlejs.com/
|
||||
*
|
||||
* Copyright JS Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* https://js.foundation/
|
||||
*
|
||||
* Date: 2021-02-16
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Vue.js v2.6.12
|
||||
* (c) 2014-2020 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* clipboard.js v2.0.6
|
||||
* https://clipboardjs.com/
|
||||
*
|
||||
* Licensed MIT © Zeno Rocha
|
||||
*/
|
||||
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.6.0
|
||||
* https://jquery.com/
|
||||
*
|
||||
* Includes Sizzle.js
|
||||
* https://sizzlejs.com/
|
||||
*
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* https://jquery.org/license
|
||||
*
|
||||
* Date: 2021-03-02T17:08Z
|
||||
*/
|
||||
|
||||
/*!
|
||||
* pretty-checkbox-vue v1.1.9
|
||||
* (c) 2017-2018 Hamed Ehtesham
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* vue-i18n v8.24.4
|
||||
* (c) 2021 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* vuejs-datepicker v2.0.2
|
||||
* (c) 2016-2019 Charlie Kassel
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.15.0
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
//! Copyright (c) JS Foundation and other contributors
|
||||
|
||||
//! github.com/moment/moment-timezone
|
||||
|
||||
//! invalid number
|
||||
|
||||
//! license : MIT
|
||||
|
||||
//! moment-timezone.js
|
||||
|
||||
//! moment.js
|
||||
|
||||
//! moment.js locale configuration
|
||||
|
||||
//! version : 0.5.33
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"/js/app.js": "/js/app.js?id=e4dd41d026dabae81573",
|
||||
"/js/stripe.js": "/js/stripe.js?id=20c59848535dab33ed9e",
|
||||
"/js/manifest.js": "/js/manifest.js?id=895f51a7a2cbcfaf0d03",
|
||||
"/css/app-rtl.css": "/css/app-rtl.css?id=e976d220373bd82dfe46",
|
||||
"/css/app-ltr.css": "/css/app-ltr.css?id=a535634cad9f2ad15ea5",
|
||||
"/css/stripe.css": "/css/stripe.css?id=0308292ca58c025301a2",
|
||||
"/js/vendor.js": "/js/vendor.js?id=2cba8f705510a93a4514"
|
||||
}
|
||||
@@ -55,6 +55,13 @@ apt-get install -y php7.4-bcmath php7.4-cli php7.4-curl php7.4-common php7.4-fpm
|
||||
php7.4-gd php7.4-gmp php7.4-imagick php7.4-intl php7.4-json php7.4-mbstring \
|
||||
php7.4-mysql php7.4-opcache php7.4-redis php7.4-xml php7.4-zip >/dev/null
|
||||
|
||||
echo -e "\n\033[4;32mInstalling node.js\033[0;40m"
|
||||
curl -fsSL https://deb.nodesource.com/setup_14.x | bash - >/dev/null
|
||||
apt-get install -y nodejs >/dev/null
|
||||
|
||||
echo -e "\n\033[4;32mInstalling yarn\033[0;40m"
|
||||
npm install --global yarn >/dev/null
|
||||
|
||||
echo -e "\n\033[4;32mGetting database ready\033[0;40m"
|
||||
mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "CREATE DATABASE $MYSQL_DB_DATABASE;
|
||||
CREATE USER '$MYSQL_DB_USERNAME'@'localhost' IDENTIFIED BY '$MYSQL_DB_PASSWORD';
|
||||
@@ -70,6 +77,10 @@ fi
|
||||
composer install --no-interaction --no-dev --no-progress >/dev/null
|
||||
composer clear-cache
|
||||
|
||||
echo -e "\n\033[4;32mBuild assets\033[0;40m"
|
||||
yarn install
|
||||
yarn run production
|
||||
|
||||
echo -e "\n\033[4;32mConfiguring Monica\033[0;40m"
|
||||
cp .env.example .env
|
||||
update_setting .env DB_DATABASE "$MYSQL_DB_DATABASE"
|
||||
|
||||
Reference in New Issue
Block a user