This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare module '@ioc:Adonis/Core/Application' {
import { ViewContract } from '@ioc:Adonis/Core/View';
interface ContainerBindings {
'Adonis/Core/View': ViewContract;
}
}
+8
View File
@@ -0,0 +1,8 @@
/**
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
+25
View File
@@ -0,0 +1,25 @@
/**
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Decorate context
*/
declare module '@ioc:Adonis/Core/HttpContext' {
import { ViewRendererContract } from '@ioc:Adonis/Core/View';
interface HttpContextContract {
view: ViewRendererContract;
}
}
/**
* Decorate router
*/
declare module '@ioc:Adonis/Core/Route' {
interface BriskRouteContract {
render: (template: string, data?: any) => Exclude<this['route'], null>;
}
}
+8
View File
@@ -0,0 +1,8 @@
/**
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
+3
View File
@@ -0,0 +1,3 @@
/// <reference path="view.d.ts" />
/// <reference path="context.d.ts" />
/// <reference path="container.d.ts" />
+11
View File
@@ -0,0 +1,11 @@
/*
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/// <reference path="./view.ts" />
/// <reference path="./context.ts" />
/// <reference path="./container.ts" />
+10
View File
@@ -0,0 +1,10 @@
declare module '@ioc:Adonis/Core/View' {
import { EdgeContract, EdgeRendererContract } from 'edge.js';
export interface ViewContract extends EdgeContract {
}
export interface ViewRendererContract extends EdgeRendererContract {
}
export { TagContract, ParserContract, EdgeBufferContract, TagTokenContract, TemplateConstructorContract, } from 'edge.js';
const View: ViewContract;
export default View;
}
+8
View File
@@ -0,0 +1,8 @@
/*
* @adonisjs/view
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/