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 { HeroProps } from "@/types/HeroProps"; | |
export const Hero = ({ race,name }: HeroProps) => { | |
return ( | |
<h1>Hero: {name} is {race}</h1> | |
); | |
}; |
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
context('# [修改使用者權限] for normal admin', () => { | |
before(() => { | |
// 製作假資料 | |
// 本 context 會用這筆資料進行測試 | |
this.UserMock = createModelMock('User', { | |
id: 1, | |
email: '[email protected]', | |
name: 'admin', | |
isAdmin: true, // 是管理者 | |
}) |
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
export const changingLanguageAction = | |
(language:'en'|'zh'): ThunkAction< | |
void, | |
LanguageState, | |
unknown, | |
LanguageActionTypes | |
> => | |
async (dispatch,getState) => { | |
i18n.changeLanguage(language); | |
dispatch(changeLanguageAction(language)); |
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
--- Actions --- | |
$Copy <C-C> <C-Ins> | |
$Cut <C-X> <S-Del> | |
$Delete <Del> | |
$LRU | |
$Paste <C-V> <S-Ins> | |
$Redo <C-S-Z> <A-S-BS> | |
$SearchWeb | |
$SelectAll <C-A> | |
$Undo <C-Z> <A-BS> |
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
/* 91APP Inc.遊戲產生器91APP All rights reserved. */ | |
$(function(){ | |
var url = window.location.href; | |
var share_fb = 'http://www.facebook.com/sharer.php'; | |
$('.share_fb').attr('href',share_fb+'?u='+url); | |
var share_line = 'http://line.naver.jp/R/msg/text/'; | |
$('.share_line').attr('href',share_line+'?'+url); | |
}); | |
$(function(){ |
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
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
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
[ | |
{ | |
"ISO": "AD", | |
"Country": "Andorra", | |
"Continent": "EU" | |
}, | |
{ | |
"ISO": "AE", | |
"Country": "United Arab Emirates", | |
"Continent": "AS" |
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
[ | |
{ | |
"ISO": "AD", | |
"Country": "Andorra", | |
"Continent": "EU" | |
}, | |
{ | |
"ISO": "AE", | |
"Country": "United Arab Emirates", | |
"Continent": "AS" |
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 2017 Bryan Keller (https://github.com/widget-) | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>ctor</Title> | |
<Shortcut>ctor</Shortcut> | |
<Description>建構函式的程式碼片段</Description> | |
<Author>Microsoft Corporation</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
NewerOlder