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
| <#macro objectToJson object, key = "unknown"> | |
| <@compress single_line=true> | |
| <#if object?is_method> | |
| ${key}: "is_method" | |
| <#elseif object?is_hash || object?is_hash_ex> | |
| <#assign first="true"> | |
| { | |
| <#list object as key, val> | |
| <#if first="false">,</#if> | |
| <#assign value><@objectToJson object=val!"null" key=key /></#assign> |
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
| <#ftl strip_text=true /> | |
| <#--- | |
| @homepage https://github.com/ratherblue/freemarker-debugger/ | |
| @license MIT | |
| @version 1.0 | |
| @name freemarker-debugger | |
| @description Macros and functions used to generate a tabular view of the .locals, .main, and .data model. | |
| @see http://freemarker.org/docs/ref_specvar.html | |
| @namespace debugger |
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 Foundation | |
| struct VOService { | |
| public var baseUrl: String | |
| static let shared = VOService(mode: .production) | |
| init(mode: AppMode) { | |
| switch (mode) { |
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
| /** @jsx createElement **/ | |
| import { createElement, FC, Fragment } from 'react' | |
| import { connect } from 'react-redux' | |
| import { RootState } from '@/models/app' | |
| import { Auth, Roles, roleOptions } from '@/models/auth' | |
| interface Props { | |
| children: React.ReactNode | |
| role?: Roles |
OlderNewer