This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!function_exists('check_connection')) { | |
| /** | |
| * Check database connection. | |
| * | |
| * @param $connection | |
| * @return bool | |
| */ | |
| function check_connection($connection) | |
| { | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div v-if="removed" class="box" :class="[{'box-solid' : isSolid}, {'collapsed-box' : isCollapsed }, 'box-' + color]"> | |
| <div class="box-header" :class="{'with-border' : borderOnHeader}"> | |
| <div class="box-title" v-if="!noTitle"> | |
| <slot name="title">Put your title here using slot with name title</slot> | |
| </div> | |
| <div class="box-tools pull-right" v-if="!noTitle"> | |
| <slot name="box-tools"> | |
| <button v-if="isCollapsable" type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa" :class="collapseIcon"></i></button> | |
| <button v-if="isRemovable" type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div v-if="removed" class="box" :class="[{'box-solid' : isSolid}, {'collapsed-box' : isCollapsed }, 'box-' + color]"> | |
| <div class="box-header" :class="{'with-border' : borderOnHeader}"> | |
| <div class="box-title" v-if="!noTitle"> | |
| <slot name="title">Put your title here using slot with name title</slot> | |
| </div> | |
| <div class="box-tools pull-right" v-if="!noTitle"> | |
| <slot name="box-tools"> | |
| <button v-if="isCollapsable" type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa" :class="collapseIcon"></i></button> | |
| <button v-if="isRemovable" type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="box-body"> | |
| <slot>Put your content here using default slot</slot> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <adminlte-vue-box id="default_box_with_custom_box_tools"> | |
| <template slot="box-tools"> | |
| <button type="button" class="btn btn-box-tool" ><i class="fa fa-cog"></i></button> | |
| <button type="button" class="btn btn-box-tool" ><i class="fa fa-user"></i></button> | |
| </template> | |
| <span slot="title">Custom tool box!</span> | |
| Custom tool box | |
| </adminlte-vue-box> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { mount } from 'vue-test-utils' | |
| import expect from 'expect' | |
| import #[[$Component$]]# from '../../resources/assets/js/components/#[[$Component$]]#.vue' | |
| describe('#[[$Component$]]#', () => { | |
| let component | |
| beforeEach(() => { | |
| component = mount(#[[$Component$]]#) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| {{#[[$data$]]#}} | |
| </div> | |
| </template> | |
| <style> | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @extends('adminlte::layouts.app') | |
| @section('htmlheader_title') | |
| #[[$HEADER_TITLE$]]# | |
| @endsection | |
| @section('main-content') | |
| #[[$CONTENT$]]# | |
| @endsection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const wait = time => new Promise((resolve) => setTimeout(resolve, time)); | |
| wait(3000).then(() => console.log('Hello!')); // 'Hello!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 04c170c4be84786b77a51717a7627ad50df3f4f13eff18dbf987783d733c42f64b0a3277cc3abacad19138a18cdc6943267d621941798afd55a8b1298c06170797 |