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 { Component } from '@angular/core'; | |
import { provideState } from '@ngrx/store'; | |
export const routeConfig = { | |
title: 'Page Title', | |
providers: [ | |
provideState() | |
] | |
} |
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 default { | |
title: 'Page Title', | |
providers: [ | |
provideState() | |
] | |
} |
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 { ComponentRef, createComponent, Type } from "@angular/core"; | |
import { createApplication } from "@angular/platform-browser"; | |
import React, { useEffect, useRef, useState } from "react"; | |
type AnyComponentRef = ComponentRef<unknown>; | |
export type ReactifyProps = { | |
component: Type<unknown>; | |
inputs?: Record<string, unknown>; | |
}; |
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
function configureStoreWithFeature(feature: ...): Provider[] { | |
return [ | |
{ | |
provide: Store, | |
useFactory: () => { | |
const rootStore = inject(RootStore); | |
for (const feature of inject(STORE_FEATURE, [])) { | |
rootStore.registerFeature(feature); | |
} | |
return rootStore; |
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 sdk = require('node-appwrite'); | |
const fetch = require('node-fetch'); | |
const { Headers, Request, Response } = require('node-fetch'); | |
if (!globalThis.fetch) { | |
globalThis.fetch = fetch; | |
globalThis.Headers = Headers; | |
globalThis.Request = Request; | |
globalThis.Response = Response; | |
} |
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 sdk = require('node-appwrite'); | |
const fetch = require('node-fetch'); | |
const { Headers, Request, Response } = require('node-fetch'); | |
if (!globalThis.fetch) { | |
globalThis.fetch = fetch; | |
globalThis.Headers = Headers; | |
globalThis.Request = Request; | |
globalThis.Response = Response; | |
} |
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
{ | |
"name": "appwrite-function", | |
"version": "1.0.0", | |
"description": "", | |
"main": "src/index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", |
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 sdk = require("node-appwrite"); | |
/* | |
'req' variable has: | |
'headers' - object with request headers | |
'payload' - object with request body data | |
'env' - object with environment variables | |
'res' variable has: | |
'send(text, status)' - function to return text response. Status code defaults to 200 |
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 selectProductListViewModel = createSelector( | |
selectIsViewReady, | |
selectProductsList, | |
(ready, products) => ({ ready, products }) | |
); |
NewerOlder