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 lang="ts" setup> | |
const state = reactive<ShipmentManagerState>({ | |
shipmentDetailsSubmitLoading: false, | |
readOnly: false, | |
booking: null, | |
cargoForm: { | |
params: { | |
cargo_year: '', | |
cargo_make: '', |
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
/** | |
* Set CSS variables for each property in the passed-in colors object | |
* @param {object} colors Colors object from the database | |
*/ | |
updateCSSVariables(colors) { | |
return new Promise((resolve, reject) => { | |
try { | |
if (!colors) { | |
reject('invalid colors'); | |
return 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
Thanks for checking this out... I did not see anywhere in the docs that I was supposed to include the | |
Authorization header, but it was not working without it so i figured I would try it. | |
See below for how I am attaching that (found on stack overflow) | |
STACK TRACE | |
[2020-11-13 02:42:32] local.ERROR: The resource owner or authorization server denied the request. {"exception":"[object] (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9): The resource owner or authorization server denied the request. at /app/vendor/league/oauth2-server/src/Exception/OAuthServerException.php:223) | |
[stacktrace] | |
#0 /app/vendor/league/oauth2-server/src/AuthorizationValidators/BearerTokenValidator.php(73): League\\OAuth2\\Server\\Exception\\OAuthServerException::accessDenied('Access token co...') |
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).ready(function($){ | |
var anchorElements = $('a'); | |
var eventDefaults = { | |
category: 'Links', | |
value: 0 | |
} | |
var fileTypes = new RegExp(/\.(docx*|xlsx*|pptx*|zip|pdf)$/i); | |
var mailtoPattern = new RegExp('/mailto:/'); |
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
source 'https://rubygems.org' | |
gem 'rails' | |
gem 'pg' | |
gem 'jbuilder', '~> 2.0' | |
gem 'sdoc', '~> 0.4.0', group: :doc | |
gem 'bcrypt', '~> 3.1.7' | |
gem 'devise', '~> 3.5.6' | |
gem 'stripe', git: 'https://github.com/stripe/stripe-ruby' | |
gem 'rack-cors', require: 'rack/cors' | |
gem 'has_scope' |
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
{ | |
/* | |
// Place your snippets for Sass here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
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
{ | |
"workbench.iconTheme": "vscode-icons", | |
"vsicons.projectDetection.autoReload": true, | |
"window.zoomLevel": 0, | |
"workbench.startupEditor": "welcomePage", | |
"editor.minimap.enabled": false, | |
"gitlens.advanced.messages": { | |
"suppressCommitHasNoPreviousCommitWarning": false, | |
"suppressCommitNotFoundWarning": false, | |
"suppressFileNotUnderSourceControlWarning": 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
// - - - - - - - - - - - - - - - - - - - - - - - - - | |
// Media Query Ranges | |
// - usage: | |
// @media #{$large-up}{ | |
// // styles here | |
// } | |
// - - - - - - - - - - - - - - - - - - - - - - - - - | |
// Tools |
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
# Property model | |
class Property < ActiveRecord::Base | |
has_and_belongs_to_many :contacts, -> { uniq } | |
end | |
# Contact model | |
class Contact < ActiveRecord::Base | |
has_and_belongs_to_many :properties, -> { uniq } | |
end |