Skip to content

Instantly share code, notes, and snippets.

Steps

  • ./curl > result.json

  • npm install

  • node index.js > out.graphql

// ==UserScript==
// @name Copy Shopify
// @version 0.1
// @description Add copy button to shopify admin-api graphql schemas
// @author tkain
// @match https://shopify.dev/docs/admin-api/graphql/reference/*
// @grant GM_setClipboard
// ==/UserScript==
const parseAndCopy = (table) => {
const CardDB = require('../sql/card/CardDB.js')
CardDB.setSequelize(global.sequelize)
const CardModel = CardDB.model()
const ERROR = require('../const/error.js')
const ACTION = {
SELECT_VALID: 'SELECT_VALID',
UPDATE: 'UPDATE'
}
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.0/lodash.js"></script>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="./a.css">
<meta charset="utf-8">
<title>JS Bin</title>
- provide :title, "影音資料庫"
- provide :subtitle, "#{ @chapter.chapters_title } |"
- provide :cover, image_path('cover.jpg')
#library data-current-chapter=@chapter.id
.horizontal.wrap
#units
.desktop.laptop.tablet
nav.ui.four.item.fluid.no.radius.margin.menu.inverted.blue
== render 'chapter_nav'