Skip to content

Commit

Permalink
added basic login ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak-Sangle committed Nov 28, 2023
1 parent b33d219 commit a189f87
Show file tree
Hide file tree
Showing 224 changed files with 11,122 additions and 3,901 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1023.922.9182.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ast":null,"code":"var isDisabled = function isDisabled(props) {\n return props.disabled || Array.isArray(props.accessibilityStates) && props.accessibilityStates.indexOf('disabled') > -1;\n};\nexport default isDisabled;","map":{"version":3,"names":["isDisabled","props","disabled","Array","isArray","accessibilityStates","indexOf"],"sources":["H:/Documents/Repositories/Dear Diary/mobile-client/node_modules/react-native-web/dist/modules/AccessibilityUtil/isDisabled.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nvar isDisabled = props => props.disabled || Array.isArray(props.accessibilityStates) && props.accessibilityStates.indexOf('disabled') > -1;\nexport default isDisabled;"],"mappings":"AASA,IAAIA,UAAU,GAAG,SAAbA,UAAUA,CAAGC,KAAK;EAAA,OAAIA,KAAK,CAACC,QAAQ,IAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAACI,mBAAmB,CAAC,IAAIJ,KAAK,CAACI,mBAAmB,CAACC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAAA;AAC1I,eAAeN,UAAU"},"metadata":{},"sourceType":"module","externalDependencies":[]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport { Platform } from 'expo-modules-core';\nimport PixelRatio from \"react-native-web/dist/exports/PixelRatio\";\nfunction getScaledAssetPath(asset) {\n var scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n var scaleSuffix = scale === 1 ? '' : '@' + scale + 'x';\n var type = !asset.type ? '' : `.${asset.type}`;\n if (__DEV__) {\n return asset.httpServerLocation + '/' + asset.name + scaleSuffix + type;\n } else {\n return asset.httpServerLocation.replace(/\\.\\.\\//g, '_') + '/' + asset.name + scaleSuffix + type;\n }\n}\nvar AssetSourceResolver = function () {\n function AssetSourceResolver(serverUrl, jsbundleUrl, asset) {\n _classCallCheck(this, AssetSourceResolver);\n this.serverUrl = serverUrl || 'https://expo.dev';\n this.jsbundleUrl = null;\n this.asset = asset;\n }\n _createClass(AssetSourceResolver, [{\n key: \"isLoadedFromServer\",\n value: function isLoadedFromServer() {\n return true;\n }\n }, {\n key: \"isLoadedFromFileSystem\",\n value: function isLoadedFromFileSystem() {\n return false;\n }\n }, {\n key: \"defaultAsset\",\n value: function defaultAsset() {\n return this.assetServerURL();\n }\n }, {\n key: \"assetServerURL\",\n value: function assetServerURL() {\n var fromUrl = new URL(getScaledAssetPath(this.asset), this.serverUrl);\n fromUrl.searchParams.set('platform', Platform.OS);\n fromUrl.searchParams.set('hash', this.asset.hash);\n return this.fromSource(fromUrl.toString().replace(fromUrl.origin, ''));\n }\n }, {\n key: \"fromSource\",\n value: function fromSource(source) {\n var _this$asset$width, _this$asset$height;\n return {\n __packager_asset: true,\n width: (_this$asset$width = this.asset.width) != null ? _this$asset$width : undefined,\n height: (_this$asset$height = this.asset.height) != null ? _this$asset$height : undefined,\n uri: source,\n scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get())\n };\n }\n }], [{\n key: \"pickScale\",\n value: function pickScale(scales, deviceScale) {\n for (var i = 0; i < scales.length; i++) {\n if (scales[i] >= deviceScale) {\n return scales[i];\n }\n }\n return scales[scales.length - 1] || 1;\n }\n }]);\n return AssetSourceResolver;\n}();\nexport { AssetSourceResolver as default };","map":{"version":3,"names":["Platform","PixelRatio","getScaledAssetPath","asset","scale","AssetSourceResolver","pickScale","scales","get","scaleSuffix","type","__DEV__","httpServerLocation","name","replace","serverUrl","jsbundleUrl","_classCallCheck","_createClass","key","value","isLoadedFromServer","isLoadedFromFileSystem","defaultAsset","assetServerURL","fromUrl","URL","searchParams","set","OS","hash","fromSource","toString","origin","source","_this$asset$width","_this$asset$height","__packager_asset","width","undefined","height","uri","deviceScale","i","length","default"],"sources":["H:\\Documents\\Repositories\\Dear Diary\\mobile-client\\node_modules\\expo-asset\\src\\AssetSourceResolver.web.ts"],"sourcesContent":["import { Platform } from 'expo-modules-core';\nimport { PixelRatio } from 'react-native';\nimport { PackagerAsset } from 'react-native/Libraries/Image/AssetRegistry';\n\nexport type ResolvedAssetSource = {\n __packager_asset: boolean;\n width?: number;\n height?: number;\n uri: string;\n scale: number;\n};\n\n// Returns the Metro dev server-specific asset location.\nfunction getScaledAssetPath(asset): string {\n const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n const scaleSuffix = scale === 1 ? '' : '@' + scale + 'x';\n const type = !asset.type ? '' : `.${asset.type}`;\n if (__DEV__) {\n return asset.httpServerLocation + '/' + asset.name + scaleSuffix + type;\n } else {\n return asset.httpServerLocation.replace(/\\.\\.\\//g, '_') + '/' + asset.name + scaleSuffix + type;\n }\n}\n\nexport default class AssetSourceResolver {\n serverUrl: string;\n // where the jsbundle is being run from\n // NOTE(EvanBacon): Never defined on web.\n jsbundleUrl?: string | null;\n // the asset to resolve\n asset: PackagerAsset;\n\n constructor(\n serverUrl: string | undefined | null,\n jsbundleUrl: string | undefined | null,\n asset: PackagerAsset\n ) {\n this.serverUrl = serverUrl || 'https://expo.dev';\n this.jsbundleUrl = null;\n this.asset = asset;\n }\n\n // Always true for web runtimes\n isLoadedFromServer(): boolean {\n return true;\n }\n\n // Always false for web runtimes\n isLoadedFromFileSystem(): boolean {\n return false;\n }\n\n defaultAsset(): ResolvedAssetSource {\n return this.assetServerURL();\n }\n\n /**\n * @returns absolute remote URL for the hosted asset.\n */\n assetServerURL(): ResolvedAssetSource {\n const fromUrl = new URL(getScaledAssetPath(this.asset), this.serverUrl);\n fromUrl.searchParams.set('platform', Platform.OS);\n fromUrl.searchParams.set('hash', this.asset.hash);\n return this.fromSource(\n // Relative on web\n fromUrl.toString().replace(fromUrl.origin, '')\n );\n }\n\n fromSource(source: string): ResolvedAssetSource {\n return {\n __packager_asset: true,\n width: this.asset.width ?? undefined,\n height: this.asset.height ?? undefined,\n uri: source,\n scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()),\n };\n }\n\n static pickScale(scales: number[], deviceScale: number): number {\n for (let i = 0; i < scales.length; i++) {\n if (scales[i] >= deviceScale) {\n return scales[i];\n }\n }\n return scales[scales.length - 1] || 1;\n }\n}\n"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,mBAAmB;AAAC,OAAAC,UAAA;AAa7C,SAASC,kBAAkBA,CAACC,KAAK;EAC/B,IAAMC,KAAK,GAAGC,mBAAmB,CAACC,SAAS,CAACH,KAAK,CAACI,MAAM,EAAEN,UAAU,CAACO,GAAG,EAAE,CAAC;EAC3E,IAAMC,WAAW,GAAGL,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,GAAGA,KAAK,GAAG,GAAG;EACxD,IAAMM,IAAI,GAAG,CAACP,KAAK,CAACO,IAAI,GAAG,EAAE,GAAG,IAAIP,KAAK,CAACO,IAAI,EAAE;EAChD,IAAIC,OAAO,EAAE;IACX,OAAOR,KAAK,CAACS,kBAAkB,GAAG,GAAG,GAAGT,KAAK,CAACU,IAAI,GAAGJ,WAAW,GAAGC,IAAI;GACxE,MAAM;IACL,OAAOP,KAAK,CAACS,kBAAkB,CAACE,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,GAAG,GAAG,GAAGX,KAAK,CAACU,IAAI,GAAGJ,WAAW,GAAGC,IAAI;;AAEnG;AAAC,IAEoBL,mBAAmB;EAQtC,SAAAA,oBACEU,SAAoC,EACpCC,WAAsC,EACtCb,KAAoB;IAAAc,eAAA,OAAAZ,mBAAA;IAEpB,IAAI,CAACU,SAAS,GAAGA,SAAS,IAAI,kBAAkB;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SAAS,CAAC,IAAI,CAACH,KAAK,CAACI,MAAM,EAAEN,UAAU,CAACO,GAAG,EAAE;OACzE;IACH;EAAC;IAAAW,GAAA;IAAAC,KAAA,EAED,SAAAd,UAAiBC,MAAgB,EAAEmC,WAAmB;MACpD,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGpC,MAAM,CAACqC,MAAM,EAAED,CAAC,EAAE,EAAE;QACtC,IAAIpC,MAAM,CAACoC,CAAC,CAAC,IAAID,WAAW,EAAE;UAC5B,OAAOnC,MAAM,CAACoC,CAAC,CAAC;;;MAGpB,OAAOpC,MAAM,CAACA,MAAM,CAACqC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC;EAAC;EAAA,OAAAvC,mBAAA;AAAA;AAAA,SA9DkBA,mBAAmB,IAAAwC,OAAA"},"metadata":{},"sourceType":"module","externalDependencies":[]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ast":null,"code":"import useLayoutEffect from \"../useLayoutEffect\";\nimport UIManager from \"../../exports/UIManager\";\nimport canUseDOM from \"../canUseDom\";\nvar DOM_LAYOUT_HANDLER_NAME = '__reactLayoutHandler';\nvar didWarn = !canUseDOM;\nvar resizeObserver = null;\nfunction getResizeObserver() {\n if (canUseDOM && typeof window.ResizeObserver !== 'undefined') {\n if (resizeObserver == null) {\n resizeObserver = new window.ResizeObserver(function (entries) {\n entries.forEach(function (entry) {\n var node = entry.target;\n var onLayout = node[DOM_LAYOUT_HANDLER_NAME];\n if (typeof onLayout === 'function') {\n UIManager.measure(node, function (x, y, width, height, left, top) {\n var event = {\n nativeEvent: {\n layout: {\n x: x,\n y: y,\n width: width,\n height: height,\n left: left,\n top: top\n }\n },\n timeStamp: Date.now()\n };\n Object.defineProperty(event.nativeEvent, 'target', {\n enumerable: true,\n get: function get() {\n return entry.target;\n }\n });\n onLayout(event);\n });\n }\n });\n });\n }\n } else if (!didWarn) {\n if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {\n console.warn('onLayout relies on ResizeObserver which is not supported by your browser. ' + 'Please include a polyfill, e.g., https://github.com/que-etc/resize-observer-polyfill.');\n didWarn = true;\n }\n }\n return resizeObserver;\n}\nexport default function useElementLayout(ref, onLayout) {\n var observer = getResizeObserver();\n useLayoutEffect(function () {\n var node = ref.current;\n if (node != null) {\n node[DOM_LAYOUT_HANDLER_NAME] = onLayout;\n }\n }, [ref, onLayout]);\n useLayoutEffect(function () {\n var node = ref.current;\n if (node != null && observer != null) {\n if (typeof node[DOM_LAYOUT_HANDLER_NAME] === 'function') {\n observer.observe(node);\n } else {\n observer.unobserve(node);\n }\n }\n return function () {\n if (node != null && observer != null) {\n observer.unobserve(node);\n }\n };\n }, [ref, observer]);\n}","map":{"version":3,"names":["useLayoutEffect","UIManager","canUseDOM","DOM_LAYOUT_HANDLER_NAME","didWarn","resizeObserver","getResizeObserver","window","ResizeObserver","entries","forEach","entry","node","target","onLayout","measure","x","y","width","height","left","top","event","nativeEvent","layout","timeStamp","Date","now","Object","defineProperty","enumerable","get","process","env","NODE_ENV","console","warn","useElementLayout","ref","observer","current","observe","unobserve"],"sources":["H:/Documents/Repositories/Dear Diary/mobile-client/node_modules/react-native-web/dist/modules/useElementLayout/index.js"],"sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nimport useLayoutEffect from '../useLayoutEffect';\nimport UIManager from '../../exports/UIManager';\nimport canUseDOM from '../canUseDom';\nvar DOM_LAYOUT_HANDLER_NAME = '__reactLayoutHandler';\nvar didWarn = !canUseDOM;\nvar resizeObserver = null;\nfunction getResizeObserver() {\n if (canUseDOM && typeof window.ResizeObserver !== 'undefined') {\n if (resizeObserver == null) {\n resizeObserver = new window.ResizeObserver(function (entries) {\n entries.forEach(entry => {\n var node = entry.target;\n var onLayout = node[DOM_LAYOUT_HANDLER_NAME];\n if (typeof onLayout === 'function') {\n // We still need to measure the view because browsers don't yet provide\n // border-box dimensions in the entry\n UIManager.measure(node, (x, y, width, height, left, top) => {\n var event = {\n // $FlowFixMe\n nativeEvent: {\n layout: {\n x,\n y,\n width,\n height,\n left,\n top\n }\n },\n timeStamp: Date.now()\n };\n Object.defineProperty(event.nativeEvent, 'target', {\n enumerable: true,\n get: () => entry.target\n });\n onLayout(event);\n });\n }\n });\n });\n }\n } else if (!didWarn) {\n if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {\n console.warn('onLayout relies on ResizeObserver which is not supported by your browser. ' + 'Please include a polyfill, e.g., https://github.com/que-etc/resize-observer-polyfill.');\n didWarn = true;\n }\n }\n return resizeObserver;\n}\nexport default function useElementLayout(ref, onLayout) {\n var observer = getResizeObserver();\n useLayoutEffect(() => {\n var node = ref.current;\n if (node != null) {\n node[DOM_LAYOUT_HANDLER_NAME] = onLayout;\n }\n }, [ref, onLayout]);\n\n // Observing is done in a separate effect to avoid this effect running\n // when 'onLayout' changes.\n useLayoutEffect(() => {\n var node = ref.current;\n if (node != null && observer != null) {\n if (typeof node[DOM_LAYOUT_HANDLER_NAME] === 'function') {\n observer.observe(node);\n } else {\n observer.unobserve(node);\n }\n }\n return () => {\n if (node != null && observer != null) {\n observer.unobserve(node);\n }\n };\n }, [ref, observer]);\n}"],"mappings":"AASA,OAAOA,eAAe;AACtB,OAAOC,SAAS;AAChB,OAAOC,SAAS;AAChB,IAAIC,uBAAuB,GAAG,sBAAsB;AACpD,IAAIC,OAAO,GAAG,CAACF,SAAS;AACxB,IAAIG,cAAc,GAAG,IAAI;AACzB,SAASC,iBAAiBA,CAAA,EAAG;EAC3B,IAAIJ,SAAS,IAAI,OAAOK,MAAM,CAACC,cAAc,KAAK,WAAW,EAAE;IAC7D,IAAIH,cAAc,IAAI,IAAI,EAAE;MAC1BA,cAAc,GAAG,IAAIE,MAAM,CAACC,cAAc,CAAC,UAAUC,OAAO,EAAE;QAC5DA,OAAO,CAACC,OAAO,CAAC,UAAAC,KA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,CAAC,CAAC;EAClCN,eAAe,CAAC,YAAM;IACpB,IAAIY,IAAI,GAAG0B,GAAG,CAACE,OAAO;IACtB,IAAI5B,IAAI,IAAI,IAAI,EAAE;MAChBA,IAAI,CAACT,uBAAuB,CAAC,GAAGW,QAAQ;IAC1C;EACF,CAAC,EAAE,CAACwB,GAAG,EAAExB,QAAQ,CAAC,CAAC;EAInBd,eAAe,CAAC,YAAM;IACpB,IAAIY,IAAI,GAAG0B,GAAG,CAACE,OAAO;IACtB,IAAI5B,IAAI,IAAI,IAAI,IAAI2B,QAAQ,IAAI,IAAI,EAAE;MACpC,IAAI,OAAO3B,IAAI,CAACT,uBAAuB,CAAC,KAAK,UAAU,EAAE;QACvDoC,QAAQ,CAACE,OAAO,CAAC7B,IAAI,CAAC;MACxB,CAAC,MAAM;QACL2B,QAAQ,CAACG,SAAS,CAAC9B,IAAI,CAAC;MAC1B;IACF;IACA,OAAO,YAAM;MACX,IAAIA,IAAI,IAAI,IAAI,IAAI2B,QAAQ,IAAI,IAAI,EAAE;QACpCA,QAAQ,CAACG,SAAS,CAAC9B,IAAI,CAAC;MAC1B;IACF,CAAC;EACH,CAAC,EAAE,CAAC0B,GAAG,EAAEC,QAAQ,CAAC,CAAC;AACrB"},"metadata":{},"sourceType":"module","externalDependencies":[]}
Loading

0 comments on commit a189f87

Please sign in to comment.