Added my snippets and current settings on Linux
This commit is contained in:
commit
51bd3c9c6e
44
Packages/User/Preferences.sublime-settings
Normal file
44
Packages/User/Preferences.sublime-settings
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"always_show_minimap_viewport": true,
|
||||||
|
"bold_folder_labels": true,
|
||||||
|
"caret_style": "phase",
|
||||||
|
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
|
||||||
|
"control_character_style": "names",
|
||||||
|
"copy_with_empty_selection": false,
|
||||||
|
"fallback_encoding": "UTF-8",
|
||||||
|
"folder_exclude_patterns":
|
||||||
|
[
|
||||||
|
".git",
|
||||||
|
".hg",
|
||||||
|
".idea",
|
||||||
|
".svn",
|
||||||
|
".Trash",
|
||||||
|
".Trash-*",
|
||||||
|
".vscode",
|
||||||
|
"__pycache__",
|
||||||
|
"CVS",
|
||||||
|
"node_modules"
|
||||||
|
],
|
||||||
|
"font_face": "Victor Mono",
|
||||||
|
"font_options":
|
||||||
|
[
|
||||||
|
"dlig"
|
||||||
|
],
|
||||||
|
"hardware_acceleration": "opengl",
|
||||||
|
"highlight_modified_tabs": true,
|
||||||
|
"ignored_packages":
|
||||||
|
[
|
||||||
|
"Vintage",
|
||||||
|
],
|
||||||
|
"line_padding_bottom": 2,
|
||||||
|
"line_padding_top": 2,
|
||||||
|
"material_theme_accent_cyan": true,
|
||||||
|
"material_theme_bold_tab": true,
|
||||||
|
"original_color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
|
||||||
|
"shift_tab_unindent": true,
|
||||||
|
"show_encoding": true,
|
||||||
|
"show_line_endings": true,
|
||||||
|
"theme": "Material-Theme.sublime-theme",
|
||||||
|
"translate_tabs_to_spaces": true,
|
||||||
|
"font_size": 10,
|
||||||
|
}
|
74
Packages/User/blade.base.sublime-snippet
Normal file
74
Packages/User/blade.base.sublime-snippet
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="no-js">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
|
|
||||||
|
<meta name="robots" content="index,follow">
|
||||||
|
<meta name="googlebot" content="index,follow">
|
||||||
|
|
||||||
|
<meta name="format-detection" content="telephone=no">
|
||||||
|
<meta http-equiv="x-dns-prefetch-control" content="off">
|
||||||
|
<meta name="google" content="notranslate">
|
||||||
|
<meta name="google" content="nositelinkssearchbox">
|
||||||
|
<meta name="rating" content="General">
|
||||||
|
<meta name="url" content="{{ url('/') }}">
|
||||||
|
<meta name="subject" content="your website's subject">
|
||||||
|
<meta name="description" content="A description of the page">
|
||||||
|
|
||||||
|
<title>{{ config('app.name', 'Laravel') }}</title>
|
||||||
|
|
||||||
|
<!-- Privacy -->
|
||||||
|
<meta name="twitter:dnt" content="on">
|
||||||
|
|
||||||
|
<!-- analytics -->
|
||||||
|
<!-- -->
|
||||||
|
|
||||||
|
<!-- Helps prevent duplicate content issues -->
|
||||||
|
<link href="{{ route()->current() }}" rel="canonical">
|
||||||
|
|
||||||
|
<!-- Gives a reference to a location in your document that may be in another language -->
|
||||||
|
<link href="#" rel="alternate" hreflang="de">
|
||||||
|
|
||||||
|
<!-- Favicon -->
|
||||||
|
<link href="/favicon.ico" rel="icon" sizes="16x16" type="image/icon">
|
||||||
|
<link href="/favicon.svg" rel="icon" type="image/svg+xml">
|
||||||
|
<link href="/favicon.png" rel="icon" sizes="192x192">
|
||||||
|
|
||||||
|
<!-- Font preloads (should be done for each font file) -->
|
||||||
|
<link href="{{ asset('fonts/fontfam/font.woff2') }}" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
|
||||||
|
<link href="{{ asset('fonts/fontfam/font.woff') }}" rel="preload" as="font" type="font/woff" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- Styles -->
|
||||||
|
<link href="{{ asset('css/app.css') }}" rel="stylesheet" media="screen">
|
||||||
|
<link href="{{ asset('css/print.css') }}" rel="stylesheet" media="print">
|
||||||
|
@yield('css')
|
||||||
|
|
||||||
|
<!-- JS that must be executed before the document is loaded -->
|
||||||
|
<script type="module">
|
||||||
|
document.documentElement.classList.remove('no-js');
|
||||||
|
document.documentElement.classList.add('js');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="{{ asset('js/app.js') }}" defer></script>
|
||||||
|
@yield('js')
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body class="font-sans antialiased">
|
||||||
|
<div id="app" class="min-h-screen bg-gray-100">
|
||||||
|
@yield('body')
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>baseblade</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
14
Packages/User/bladefile.sublime-snippet
Normal file
14
Packages/User/bladefile.sublime-snippet
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
@extends('layouts.${1}')
|
||||||
|
|
||||||
|
@section('${2}')
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>bladefile</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
17
Packages/User/fontface.sublime-snippet
Normal file
17
Packages/User/fontface.sublime-snippet
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
@font-face {
|
||||||
|
font-family: "${1:FontFamily}";
|
||||||
|
src: url(fonts/${1:FontFamily}/${2:FontName}.woff2) format("woff2"),
|
||||||
|
url(fonts/${1:FontFamily}/${2:FontName}.woff) format("woff");
|
||||||
|
font-weight: 400; /* normal/400, bold/700 */
|
||||||
|
font-style: normal; /* normal, italic, oblique */
|
||||||
|
font-display: swap; /* swap, fallback */
|
||||||
|
}
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>fontface</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
11
Packages/User/form.sublime-snippet
Normal file
11
Packages/User/form.sublime-snippet
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
<form action="https://localhost/api/v1" method="post" enctype="multipart/form-data" accept-charset="utf-8">
|
||||||
|
|
||||||
|
</form>
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>form</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
43
Packages/User/gitig.sublime-snippet
Normal file
43
Packages/User/gitig.sublime-snippet
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
### Project Specific
|
||||||
|
# Files
|
||||||
|
.env
|
||||||
|
.env.backup
|
||||||
|
.phpunit.result.cache
|
||||||
|
docker-compose.override.yml
|
||||||
|
Homestead.json
|
||||||
|
Homestead.yaml
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
/storage/*.key
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
/node_modules
|
||||||
|
/public/hot
|
||||||
|
/public/storage
|
||||||
|
/vendor
|
||||||
|
|
||||||
|
### Editor Specific
|
||||||
|
# Files
|
||||||
|
${1:*}.sublime-project
|
||||||
|
${1:*}.sublime-workspace
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
### System Specific
|
||||||
|
# Files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Directories
|
||||||
|
__MACOSX
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>gitig</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
88
Packages/User/htmlpage.sublime-snippet
Normal file
88
Packages/User/htmlpage.sublime-snippet
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US" class="no-js">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<meta name="robots" content="index,follow">
|
||||||
|
<meta name="googlebot" content="index,follow">
|
||||||
|
|
||||||
|
<meta name="format-detection" content="telephone=no">
|
||||||
|
<meta http-equiv="x-dns-prefetch-control" content="off">
|
||||||
|
|
||||||
|
<meta name="google" content="notranslate">
|
||||||
|
<meta name="google" content="nositelinkssearchbox">
|
||||||
|
|
||||||
|
<meta name="rating" content="General">
|
||||||
|
|
||||||
|
<meta name="url" content="https://example.com/">
|
||||||
|
<meta name="subject" content="your website's subject">
|
||||||
|
<meta name="description" content="A description of the page">
|
||||||
|
|
||||||
|
<title>Page Title</title>
|
||||||
|
|
||||||
|
<!-- Privacy -->
|
||||||
|
<meta name="twitter:dnt" content="on">
|
||||||
|
|
||||||
|
<!-- analytics -->
|
||||||
|
<!-- -->
|
||||||
|
|
||||||
|
<!-- Helps prevent duplicate content issues -->
|
||||||
|
<link href="https://example.com/2010/06/title-of-my-article" rel="canonical">
|
||||||
|
|
||||||
|
<!-- Gives a reference to a location in your document that may be in another language -->
|
||||||
|
<link href="https://de.example.com/2010/06/title-of-my-article" rel="alternate" hreflang="de">
|
||||||
|
|
||||||
|
<!-- Links to a document that contains an archive link to the current document -->
|
||||||
|
<link href="https://example.com/2003/05/" title="May 2003" rel="archives">
|
||||||
|
|
||||||
|
<!-- Android web manifest file -->
|
||||||
|
<link href="/.webmanifest" rel="manifest">
|
||||||
|
|
||||||
|
<!-- Files listing who was involved in this site and copyrights -->
|
||||||
|
<link href="https://example.com/humans.txt" rel="author">
|
||||||
|
<link href="https://example.com/copyright.html" rel="copyright">
|
||||||
|
|
||||||
|
<!-- Feeds -->
|
||||||
|
<link href="https://feeds.feedburner.com/example" type="application/rss+xml" title="RSS" rel="alternate">
|
||||||
|
<link href="https://example.com/feed.atom" type="application/atom+xml" title="Atom 0.3" rel="alternate">
|
||||||
|
|
||||||
|
<!-- Favicon -->
|
||||||
|
<link href="/favicon.ico" rel="icon" sizes="16x16" type="image/icon">
|
||||||
|
<link href="/favicon.svg" rel="icon" type="image/svg+xml">
|
||||||
|
<link href="/favicon.png" rel="icon" sizes="192x192">
|
||||||
|
|
||||||
|
<!-- Font preloads (should be done for each font file) -->
|
||||||
|
<link href="https://example.com/fonts/fontfam/font.woff2" rel="preload" as="font" type="font/woff2" crossorigin="anonymous">
|
||||||
|
<link href="https://example.com/fonts/fontfam/font.woff" rel="preload" as="font" type="font/woff" crossorigin="anonymous">
|
||||||
|
|
||||||
|
<!-- CSS -->
|
||||||
|
<link href="https://example.com/css/app.css" rel="stylesheet" media="screen">
|
||||||
|
<link href="https://example.com/css/print.css" rel="stylesheet" media="print">
|
||||||
|
|
||||||
|
<!-- JS that must be executed before the document is loaded -->
|
||||||
|
<script type="module">
|
||||||
|
document.documentElement.classList.remove('no-js');
|
||||||
|
document.documentElement.classList.add('js');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="https://example.com/js/vendor/axios.min.js" defer></script>
|
||||||
|
<script src="https://example.com/js/vendor/vue.min.js" defer></script>
|
||||||
|
<script src="https://example.com/js/app.js" defer></script>
|
||||||
|
<!-- -->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<!-- -->
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>htmlpage</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
74
Packages/User/laravel_controller.sublime-snippet
Normal file
74
Packages/User/laravel_controller.sublime-snippet
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
\$data = [
|
||||||
|
'${2:models}' => ${1:MODEL}::where('user_id', auth()->id())->paginate(),
|
||||||
|
];
|
||||||
|
|
||||||
|
return view('${2:models}.index')->with(\$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show(${1:MODEL} \$${3:model})
|
||||||
|
{
|
||||||
|
\$data = [
|
||||||
|
'${3:model}' => \$${3:model},
|
||||||
|
];
|
||||||
|
|
||||||
|
return view('${2:models}.show')->with(\$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
\$data = [];
|
||||||
|
|
||||||
|
return view('${2:models}.create')->with(\$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(Request \$request)
|
||||||
|
{
|
||||||
|
\$${3:model} = new ${1:MODEL}();
|
||||||
|
// assign model fields
|
||||||
|
|
||||||
|
if (\$${3:model}->save()) {
|
||||||
|
return redirect()->route('dashboard.${2:models}.index')->with('status', "Successfully added {\$${3:model}->${4:field}} as a ${3:model}.");
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->back()->with('error', 'Unable to save that ${3:model}. Check the error logs.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function edit(${1:MODEL} \$${3:model})
|
||||||
|
{
|
||||||
|
\$data = [
|
||||||
|
'${3:model}' => \$${3:model},
|
||||||
|
];
|
||||||
|
|
||||||
|
return view('${2:models}.edit')->with(\$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update(Request \$request, ${1:MODEL} \$${3:model})
|
||||||
|
{
|
||||||
|
// assign model fields
|
||||||
|
|
||||||
|
if (\$${3:model}->update()) {
|
||||||
|
return redirect()->route('dashboard.${2:models}.index')->with('status', "Successfully updated {\$${3:model}->${4:field}}.");
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->back()->with('error', "Unable to update {\$${3:model}->${4:field}}. Check the error logs.");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function destroy(${1:MODEL} \$${3:model})
|
||||||
|
{
|
||||||
|
\$${4:field} = \$${3:model}->${4:field};
|
||||||
|
if (\$${3:model}->delete()) {
|
||||||
|
return redirect()->route('dashboard.${2:models}.index')->with('status', "Successfully removed {\$${4:field}}.");
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->back()->with('error', "Unable to remove {\$${4:field}}. Check the error logs.");
|
||||||
|
}
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>laracontroller</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
75
Packages/User/laravel_model.sublime-snippet
Normal file
75
Packages/User/laravel_model.sublime-snippet
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
|
||||||
|
protected \$table = '';
|
||||||
|
|
||||||
|
protected \$keyType = 'string';
|
||||||
|
|
||||||
|
public \$incrementing = false;
|
||||||
|
|
||||||
|
protected \$fillable = [];
|
||||||
|
|
||||||
|
protected \$hidden = [];
|
||||||
|
|
||||||
|
protected \$attributes = [];
|
||||||
|
|
||||||
|
protected \$casts = [];
|
||||||
|
|
||||||
|
protected \$dates = [];
|
||||||
|
|
||||||
|
protected \$appends = [];
|
||||||
|
|
||||||
|
protected \$touches = [];
|
||||||
|
|
||||||
|
protected \$dispatchesEvents = [];
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Class Constants
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Custom/Private Methods
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Accessors and Mutators
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Scopes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Relationships
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>laramodel</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
23
Packages/User/laravel_routes.sublime-snippet
Normal file
23
Packages/User/laravel_routes.sublime-snippet
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
Route::get('/${1:route}', [${3:controller}Controller::class, 'index'])->name('dashboard.${1:route}.index');
|
||||||
|
Route::get('/${1:route}/create', [${3:controller}Controller::class, 'create'])->name('dashboard.${1:route}.create');
|
||||||
|
Route::post('/${1:route}', [${3:controller}Controller::class, 'store'])->name('dashboard.${1:route}.store');
|
||||||
|
Route::get('/${1:route}/{${2:model}}', [${3:controller}Controller::class, 'show'])
|
||||||
|
->where('${2:model}', '[0-9]+')
|
||||||
|
->name('dashboard.${1:route}.show');
|
||||||
|
Route::get('/${1:route}/{${2:model}}/edit', [${3:controller}Controller::class, 'edit'])
|
||||||
|
->where('${2:model}', '[0-9]+')
|
||||||
|
->name('dashboard.${1:route}.edit');
|
||||||
|
Route::post('/${1:route}/{${2:model}}', [${3:controller}Controller::class, 'update'])
|
||||||
|
->where('${2:model}', '[0-9]+')
|
||||||
|
->name('dashboard.${1:route}.update');
|
||||||
|
Route::delete('/${1:route}/{${2:model}}', [${3:controller}Controller::class, 'destroy'])
|
||||||
|
->where('${2:model}', '[0-9]+')
|
||||||
|
->name('dashboard.${1:route}.destroy');
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>lararoutes</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
19
Packages/User/pdoc.sublime-snippet
Normal file
19
Packages/User/pdoc.sublime-snippet
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
/**
|
||||||
|
* ${1:Description}
|
||||||
|
*
|
||||||
|
* @since ${5:1.0}
|
||||||
|
*
|
||||||
|
* @param ${2:datatype} ${3:\$variable}
|
||||||
|
*
|
||||||
|
* @throws ${4:\Exception}
|
||||||
|
*
|
||||||
|
* @return ${6:boolean}
|
||||||
|
*/
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>pdoc</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<scope>source.php</scope>
|
||||||
|
</snippet>
|
51
Packages/User/pict.sublime-snippet
Normal file
51
Packages/User/pict.sublime-snippet
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
<picture>
|
||||||
|
<source type="image/avif"
|
||||||
|
srcset="
|
||||||
|
${1:imageName}-640w.avif 640w,
|
||||||
|
${1:imageName}-1280w.avif 1280w,
|
||||||
|
${1:imageName}-1920w.avif 1920w
|
||||||
|
"
|
||||||
|
sizes="
|
||||||
|
550px,
|
||||||
|
(max-width: 768px) calc(100vw - 3em),
|
||||||
|
(max-width: 1376px) calc(50vw - 8em)
|
||||||
|
">
|
||||||
|
|
||||||
|
<source type="image/webp"
|
||||||
|
srcset="
|
||||||
|
${1:imageName}.webp?w=100&fm=webp 100w,
|
||||||
|
${1:imageName}.webp?w=200&fm=webp 200w,
|
||||||
|
{1:imageName}.webp
|
||||||
|
"
|
||||||
|
sizes="
|
||||||
|
550px,
|
||||||
|
(max-width: 768px) calc(100vw - 3em),
|
||||||
|
(max-width: 1376px) calc(50vw - 8em)
|
||||||
|
">
|
||||||
|
|
||||||
|
<img
|
||||||
|
srcset="
|
||||||
|
${1:imageName}.jpg?w=100&fm=jpg&fl=progressive 100w,
|
||||||
|
${1:imageName}.jpg?w=200&fm=jpg&fl=progressive 200w,
|
||||||
|
${1:imageName}.jpg
|
||||||
|
"
|
||||||
|
sizes="
|
||||||
|
550px,
|
||||||
|
(max-width: 768px) calc(100vw - 3em),
|
||||||
|
(max-width: 1376px) calc(50vw - 8em)
|
||||||
|
"
|
||||||
|
src="${1:imageName}.jpg"
|
||||||
|
alt="${1:imageName}"
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
width="{{ $width }}"
|
||||||
|
height="{{ $height }}">
|
||||||
|
</picture>
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>pict</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>source.python</scope> -->
|
||||||
|
</snippet>
|
36
Packages/User/vue-component.sublime-snippet
Normal file
36
Packages/User/vue-component.sublime-snippet
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<snippet>
|
||||||
|
<content><![CDATA[
|
||||||
|
<template>
|
||||||
|
<div class="v-root"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// imports go here
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: '${1}',
|
||||||
|
|
||||||
|
props: {},
|
||||||
|
|
||||||
|
data () {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {},
|
||||||
|
|
||||||
|
mounted () {},
|
||||||
|
|
||||||
|
methods: {},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
]]></content>
|
||||||
|
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
|
||||||
|
<tabTrigger>vcomp</tabTrigger>
|
||||||
|
<!-- Optional: Set a scope to limit where the snippet will trigger -->
|
||||||
|
<!-- <scope>text.html.vue</scope> -->
|
||||||
|
</snippet>
|
Loading…
x
Reference in New Issue
Block a user