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
# coding: utf-8 | |
import datetime | |
MONTHS = {'jan': 1, 'fev': 2, 'mar': 3, 'abr': 4, 'mai': 5, 'jun': 6, | |
'jul': 7, 'ago': 8, 'set': 9, 'out': 10, 'nov': 11, 'dez': 12} | |
FULL_MONTHS = {'janeiro': 1, 'fevereiro': 2, u'março': 3, 'abril': 4, | |
'maio': 5, 'junho': 6, 'julho': 7, 'agosto': 8, | |
'setembro': 9, 'outubro': 10, 'novembro': 11, 'dezembro': 12} |
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
<template> | |
<select :name="name" class="form-control"> | |
<slot></slot> | |
</select> | |
</template> | |
<script> | |
import 'select2-bootstrap-theme/dist/select2-bootstrap.css'; | |
export default { |
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 React from 'react' | |
import ReactDOM from 'react-dom' | |
class Hello extends React.Component { | |
render () { | |
return <div className='message-box'> | |
Hello {this.props.name} | |
</div> | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>videojs-contrib-hls embed</title> | |
<!-- | |
Uses the latest versions of video.js and videojs-contrib-hls. |
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
<template> | |
<div :class="{ 'is-active': show, 'modal': true }"> | |
<div class="modal-background"></div> | |
<div class="modal-card"> | |
<header class="modal-card-head"> | |
<p class="modal-card-title">{{title}}</p> | |
<button | |
class="delete" | |
aria-label="close" |
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
<template lang="pug"> | |
//refer to https://github.com/segmentio/chrome-sidebar/blob/master/src/frame.js | |
transition(name='drawer' appear) | |
aside( | |
:class='drawerContainerClass' | |
v-show='opened' | |
v-click-outside='vcoOption' | |
) | |
div(:class='drawerWrapperClass') |
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
<template> | |
<!-- doc: https://vuejs.org/v2/guide/components.html#Dynamic-Components --> | |
<component :is="comp"></component> | |
</template> | |
<script> | |
// Just a fallback component | |
import EmptyComp from "./EmptyComp"; | |
export default { |
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
<template src="./MenuSideBar.html"></template> | |
<style src="./MenuSideBar.css"></style> | |
<script> | |
import { mapGetters, mapActions } from 'vuex'; | |
import { isNullOruUndefined } from '../../utilities/util'; | |
export default { | |
name: 'MenuSideBar', | |
props: { | |
msg: String, |
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
<template> | |
<button @click="counter += 1">{{ counter }}</button> | |
</template> | |
<script lang="ts"> | |
import { defineComponent, ref } from 'vue'; | |
export default defineComponent({ | |
setup () { | |
// by using ref, the counter becomes a proxy |
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
<script> | |
export default { | |
... | |
methods: { | |
handleScroll: throttle(() => { | |
console.log('I get fired every two seconds!') | |
}, 2000) | |
}, | |
created () { | |
window.addEventListener('scroll', this.handleScroll) |
OlderNewer