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
# build and zip, then... | |
steps: | |
- task: AzureRmWebAppDeployment@4 | |
displayName: Publish $(app_name) | |
inputs: | |
ConnectionType: "AzureRM" | |
azureSubscription: "$(azure_subscription)" | |
appType: "webAppLinux" | |
WebAppName: "$(app_name)" |
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 { useEffect, useState } from "react"; | |
export type UsePermissionState = "granted" | "denied" | "prompt" | "loading"; | |
export function useMicrophonePermission() { | |
const [permissionState, setPermissionState] = | |
useState<UsePermissionState>("loading"); | |
useEffect(() => { | |
(window.navigator.permissions as any) | |
.query({ name: "microphone" }) |
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
<Editor text={@props.image.description} options={{buttons: ['bold', 'italic', 'underline']}} /> | |
Editor = React.createClass | |
getInitialState: -> | |
text: this.props.text | |
getDefaultProps: -> | |
<div></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
$(document).on('click', 'a', function(event){ | |
event.preventDefault(); | |
var path = $(this).attr('href'); | |
dataLayer.push({'event':'pageview', 'turbolinksClick': true}); | |
Turbolinks.visit(path); | |
}); |
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
RuntimeError at /admin/pages/1 | |
============================== | |
> #<ActiveModel::Errors:0x007fd3899058a8 @base=#<Widgit::Page id: 1, title: "Test", created_at: "2014-11-23 13:28:36", updated_at: "2014-11-23 13:28:36">, @messages={:"blocks.columns.tile.components"=>["can't be blank"], :"blocks.columns"=>["is invalid"], :blocks=>["is invalid"]}> | |
/Users/Theis/Documents/GitProjects/widgit-cms/app/controllers/widgit/admin/pages_controller.rb, line 33 | |
------------------------------------------------------------------------------------------------------- | |
``` ruby | |
28 respond_to do |format| |
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
ActionController::UnpermittedParameters at /admin/pages/1 | |
========================================================= | |
> found unpermitted parameters: icon | |
actionpack (4.1.6) lib/action_controller/metal/strong_parameters.rb, line 382 | |
----------------------------------------------------------------------------- | |
``` ruby | |
377 case self.class.action_on_unpermitted_parameters |