这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions community/learn/graphql-tutorials/manifests/caddy-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ data:
/graphql/react/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/react-boilerplate/boilerplate.zip
}

redir 301 {
/graphql/react-native/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/react-native-boilerplate/boilerplate.zip
}

redir 301 {
/graphql/vue/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/vue-boilerplate/boilerplate.zip
}
Expand All @@ -18,6 +22,10 @@ data:
/graphql/react/ /graphql/react/introduction
}

redir 301 {
/graphql/react-native/ /graphql/react-native/introduction
}

redir 301 {
/graphql/vue/ /graphql/vue/introduction
}
Expand Down Expand Up @@ -66,6 +74,8 @@ data:

proxy /graphql/react react-apollo

proxy /graphql/react-native react-native-apollo

proxy /graphql/vue vue-apollo

proxy /graphql hasura/v1alpha1/graphql {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: react-native-apollo
name: react-native-apollo
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: react-native-apollo
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
template:
metadata:
labels:
app: react-native-apollo
spec:
containers:
- image: hasura/base-git-image:0.7
imagePullPolicy: IfNotPresent
name: react-native-apollo
ports:
- containerPort: 8080
protocol: TCP
readinessProbe:
httpGet:
path: /graphql/react/introduction
port: 8080
---
apiVersion: v1
kind: Service
metadata:
labels:
app: react-native-apollo
name: react-native-apollo
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: react-native-apollo
type: ClusterIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"amd": true,
"node": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "16.3.1"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"react/prop-types": "off",
"react/display-name": "off",
"no-console": "off",
"no-useless-escape": "off"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**/*
.expo/**/*
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import AppNavigator from './src/navigation/AppNavigator';
import CenterSpinner from './src/screens/components/Util/CenterSpinner';

export default class App extends React.Component {
state = {
isLoadingComplete: true,
};

render() {
if (!this.state.isLoadingComplete) {
return (
<CenterSpinner />
);
} else {
return (
<View style={styles.container}>
{Platform.OS === 'ios' && <StatusBar barStyle="default" />}
<AppNavigator />
</View>
);
}
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"expo": {
"name": "TodoGraphQL",
"description": "A React Native Todo App with GraphQL",
"slug": "TodoGraphQL",
"privacy": "public",
"sdkVersion": "32.0.0",
"platforms": ["ios", "android"],
"version": "0.0.1",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
}
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
Loading