This file contains 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 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains 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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains 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
@module("./logo.svg") external logo: string = "default" | |
%%raw(`import './App.css';`) | |
@react.component | |
let make = () => { | |
let url = RescriptReactRouter.useUrl() | |
switch url.hash { | |
| "" => <Home /> |
This file contains 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 { fetch } = useFetch(async () => { | |
const { data } = await usePrefetchStore("dashboard", "/api/dashboard"); | |
// data를 필요한 변수에 바인딩 | |
}) | |
fetch() |
This file contains 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 fetcher = (url) => fetch(url).then(response => response.json()) | |
const store = {} | |
const defaultPrefetchOption = { | |
ttl: 1000 * 10, | |
resetCache: false, | |
} | |
/** |
This file contains 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 { | |
listenAndServe, | |
ServerRequest, | |
} from "https://deno.land/std/http/server.ts"; | |
const options: Deno.ListenOptions = { port: 8000 }; | |
class Router { | |
_get: { [k: string]: (req: ServerRequest) => void } = {}; |
This file contains 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 'dart:convert'; | |
import 'dart:io'; | |
import 'package:html/dom.dart'; | |
import 'package:html/parser.dart'; | |
import 'package:dio/dio.dart'; | |
import 'package:pub_semver/pub_semver.dart'; | |
/// 안드로이드 버전을 가져옵니다 | |
/// | |
/// 구글은 API를 제공하지 않습니다 |
NewerOlder