MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
----------------------------------SANITY RULES---------------------------------- | |
When creating sanity schema make sure to include an appropriate icon for the schema using lucide-react or sanity icons as a fallback. Make sure it's always a named export, make sure you're always using the Sanity typescript definitions if it's a ts file. Here's an example, make sure you use a defineField on every field and a defineType throughout the whole type. If you don't see any arrayMembers, don't import it: | |
import {defineField, defineType, defineArrayMember} from 'sanity' if it's a .ts file. | |
defineType({ | |
type: 'object', | |
name: 'custom-object', | |
fields: [ | |
defineField({ |
import { | |
Button, | |
Card, | |
Dialog, | |
Flex, | |
Label, | |
Stack, | |
TextInput, | |
useToast, | |
} from '@sanity/ui' |
<script lang="ts"> | |
import { defineComponent, onMounted, PropType, ref, watch } from "vue"; | |
type VoidFunction = () => void; | |
const isBrowser = () => { | |
return typeof window === "object"; | |
}; | |
export default defineComponent({ | |
props: { |
import React, { useRef } from 'react' | |
import { map } from 'rxjs/operators' | |
import { createWeightedSearch } from 'part:@sanity/base/search/weighted' | |
import client from 'part:@sanity/base/client' | |
import ExternalReferenceInput from './ExternalReferenceInput' | |
const ExternalReference = props => { | |
const { type } = props | |
const { options } = type | |
const { dataset } = options |
import React, { Component, Fragment } from 'react' | |
import { BlockEditor } from 'part:@sanity/form-builder' | |
import Switch from 'part:@sanity/components/toggles/switch' | |
import css from './BlockEditor.module.css' | |
import { handlePaste } from './handlePaste' | |
export default class CustomEditor extends Component { | |
state = { | |
customPaste: false | |
} |
"use strict"; | |
// | |
// PLUGINS | |
// | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const clean = require("gulp-clean"); | |
const concat = require("gulp-concat"); |
1. $ brew install fontforge ttf2eot ttfautohint | |
2. $ brew tap bramstein/webfonttools && brew install sfnt2woff | |
3. Download/clone https://github.com/google/woff2 into any handy dir | |
cd into dir and: | |
$ git submodule init | |
$ git submodule update | |
$ make clean all | |
then: |