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 function getFile(response) { | |
var result = document.createElement('a'); | |
var contentDisposition = response.headers.get('Content-Disposition') || ''; | |
var filename = contentDisposition.split('filename=')[1]; | |
filename = filename.replace(/"/g,"") | |
return response.blob() | |
.then(function(data) { | |
result.href = window.URL.createObjectURL(data); | |
result.target = '_self'; |
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
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
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
<template> | |
<div> | |
<select v-model="day" :name="idDay" :id="idDay" :disabled="disabled"> | |
<option value="">day</option> | |
<option v-for="n in 31" :value="n">{{ n++ }}</option> | |
</select> | |
<select v-model="month" :name="idMonth" :id="idMonth" :disabled="disabled"> | |
<option value="">month</option> | |
<option v-for="(month, key) in months" :value="key+1">{{ month }}</option> | |
</select> |
OlderNewer