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 { StatusBar } from 'expo-status-bar'; | |
import React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
import { adder } from '@web/utilities/adder' | |
export default function App() { | |
console.log(adder(1, 2)) // 3 | |
return ( |
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
export const adder = (value1: number, value2: number): number => value1 + value2 |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"allowSyntheticDefaultImports": true, | |
"jsx": "react-native", | |
"lib": ["dom", "esnext"], | |
"moduleResolution": "node", | |
"noEmit": true, | |
"skipLibCheck": true, | |
"resolveJsonModule": true, | |
"strict": true, |
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
const path = require("path"); | |
const paths = { | |
"@web": path.join(__dirname, "..", "web-app/src"), | |
}; | |
module.exports = function (api) { | |
api.cache(true); | |
return { | |
presets: ["babel-preset-expo"], | |
plugins: [ |
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
const path = require("path"); | |
const extraNodeModules = { | |
"@web": path.join(__dirname, "..", "weba-app/src"), | |
}; | |
const watchFolders = [path.join(__dirname, "..", "web-app/src")]; | |
module.exports = { | |
transformer: { |
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
const person = { | |
name: "John Doe", | |
age: 49 | |
} | |
const handler = { | |
get: function(target, props, receiver) { | |
console.log(target) // eg: { name: "John Doe", age: 49 } | |
console.log(props) // eg: name | |
console.log(receiver) // eg: Proxy { name: "John Doe", age: 49 } |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<feed> | |
<entry> | |
<contributor> | |
<uri>urn:vte.cx:acl:/_group/$admin,CRUD</uri> | |
</contributor> | |
<contributor> | |
<!-- ACL settings that allow all users to get(*) --> | |
<uri>urn:vte.cx:acl:*,R.</uri> | |
</contributor> |
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
#!/bin/sh | |
npx vtecxutil upload | |
npx webpack --env.entry=/components/index.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/login.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/change_password.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/complete_registration.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/forgot_password.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/login.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/signup.tsx --mode=production --env.externals=true | |
npx webpack --env.entry=/components/user_terms.tsx --mode=production --env.externals=true |
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
const CACHE_LIST = [ | |
"/", | |
"/index.html", | |
"https://unpkg.com/[email protected]/umd/react.production.min.js", | |
"https://unpkg.com/[email protected]/umd/react-dom.production.min.js", | |
"https://unpkg.com/axios/dist/axios.min.js", | |
"components/index.js" | |
]; | |
const STATIC_CACHE_VERSION = `static-v1-${new Date().getTime()}` |
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
{ | |
"short_name": "PWA", | |
"name": "Progressive Web App", | |
"lang": "en", | |
"background_color": "#343a40", | |
"theme_color": "#343a40", | |
"display": "standalone", | |
"scope": "/", | |
"start_url": "/", | |
"icons": [ |
NewerOlder