mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
fix: fix after migrating to newer package version
This commit is contained in:
parent
a95a1bd6f9
commit
5b734ff3eb
3 changed files with 10 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ export class CodeblockProcessor extends MarkdownRenderChild {
|
|||
if (file) {
|
||||
const fileCache = this.app.metadataCache.getFileCache(file)
|
||||
variables = {
|
||||
...fileCache?.frontmatter ?? {},
|
||||
...(fileCache?.frontmatter ?? {}),
|
||||
path: file.path,
|
||||
fileName: file.name,
|
||||
basename: file.basename,
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ export class InlineProcessor extends MarkdownRenderChild {
|
|||
|
||||
// TODO: unify this between codeblock and inline handlers
|
||||
const variables = {
|
||||
...fileCache?.frontmatter ?? {},
|
||||
...(fileCache?.frontmatter ?? {}),
|
||||
path: file.path,
|
||||
fileName: file.name,
|
||||
basename: file.basename,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ import { ModernCellParser } from './cellParser/ModernCellParser';
|
|||
import { getCellParser } from './cellParser/factory';
|
||||
import { CellFunction } from './cellParser/CellFunction';
|
||||
|
||||
import { AllCommunityModule, ModuleRegistry, provideGlobalGridOptions } from 'ag-grid-community';
|
||||
|
||||
// Register all community features
|
||||
ModuleRegistry.registerModules([AllCommunityModule]);
|
||||
|
||||
// Mark all grids as using legacy themes
|
||||
provideGlobalGridOptions({ theme: "legacy"});
|
||||
|
||||
export default class SqlSealPlugin extends Plugin {
|
||||
settings: SQLSealSettings;
|
||||
fileSync: SealFileSync;
|
||||
|
|
|
|||
Loading…
Reference in a new issue