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 {ApplicationRef, DestroyRef, Injectable} from "@angular/core"; | |
import {SanityClient} from "@sanity/client"; | |
import {BehaviorSubject, debounceTime, filter, map, mergeMap, Observable, of, ReplaySubject, skip, tap} from "rxjs"; | |
import {LocaleService} from "./locale.service"; | |
import {takeUntilDestroyed} from "@angular/core/rxjs-interop"; | |
import {fromPromise} from "rxjs/internal/observable/innerFrom"; | |
@Injectable() | |
export class I18nService { | |
readonly #keys$ = new BehaviorSubject([] as string[]); |
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 { default: axios } = require( 'axios' ); | |
/** | |
* | |
* Send SMS | |
* | |
* @param {string} source The phone number sending the SMS, in the format '237698765432' (no '+' nor '00' prefix nor white spaces) | |
* @param {string} target The phone number to receive the SMS, in the format '237698765432' (no '+' nor '00' prefix nor white spaces) |
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 { data } from './data.js'; | |
alert( data.message ); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>TypeScript for the web</title> | |
</head> | |
<body> | |
<script type="module" src="./index.js"></script> |
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 { data } from './data'; | |
alert(data.message); |
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
var data_1 = require("data"); | |
alert(data_1.data.message); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>TypeScript for the web</title> | |
</head> | |
<body> | |
<script src="./index.js"></script> |
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 data = { | |
message: 'Hello world', | |
}; |
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 { data } from './data'; | |
alert( data.message ); |
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
{ | |
"compilerOptions": { | |
"target": "es2015", | |
"module": "es2015", | |
} | |
} |
NewerOlder