Pack JSON has some new fields for the live update process:
id
project-slug
size
- Human readible size of pack with all assets. Eg. "5mb"
http://updates-http.cdn-apple.com/2019/cert/061-39476-20191023-48f365f4-0015-4c41-9f44-39d3d2aca067/InstallOS.dmg |
import {Thing as BaseThing} from 'shared/components/Thing' | |
export const Thing = styled(BaseThing, { | |
// This app needs Things in upper case | |
textTransform: 'uppercase' | |
}) |
// Usage: node moveConfigs.js ../path/to/project | |
const editJsonFile = require("edit-json-file"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const folder = process.argv[2]; | |
const getPath = (fileName) => path.join(__dirname, folder, fileName); | |
const packageFile = getPath("package.json"); |
import React from 'react' | |
import { provideState, injectState, softUpdate } from 'freactal' | |
const wrapParentWithState = provideState({ | |
initialState: () => ({ | |
toggleMe: true | |
}), | |
effects: { | |
toggle: softUpdate(state => ({ toggleMe: !state.toggleMe })) | |
} |
from tastypie.resources import Resource | |
from tastypie.exceptions import ImmediateHttpResponse | |
from django.http import HttpResponse | |
class CorsResource(Resource): | |
""" adds CORS headers for cross-domain requests """ | |
def patch_response(self, response): |