Notice I’ll use some specific terminology.
For full context check Ruby Central’s role, my role, and what officially happened.
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
| You'll need to update the following variables: | |
| - ENV['APP_NAME'] | |
| - ENV['COMPANY_ADDRESS'] | |
| - ENV['HOST'] | |
| Make sure you have app/assets/images/logo.svg for this line: | |
| helpers.image_url('logo.svg') | |
| And also update the CSS variables to match your color scheme: | |
| :root { |
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
| import { navigator } from "@hotwired/turbo"; | |
| import { Controller } from "stimulus"; | |
| import { useMutation } from "stimulus-use"; | |
| export default class extends Controller { | |
| connect() { | |
| useMutation(this, { attributes: true, childList: true, subtree: true }); | |
| } | |
| mutate(entries) { |
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
| // DONT FORGET TO `yarn add esbuild-loader` !!! | |
| // config/webpacker/environment.js | |
| const { environment } = require('@rails/webpacker') | |
| const { ESBuildPlugin } = require('esbuild-loader') | |
| const esBuildUse = [ | |
| { | |
| loader: require.resolve('esbuild-loader'), | |
| // What you want to compile to, in this case, ES7 |
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
| import { Droppable } from "@shopify/draggable"; | |
| import ApplicationController from "./application_controller"; | |
| export default class extends ApplicationController { | |
| static targets = ["container", "dropzone", "targetDropzone"]; | |
| connect() { | |
| this.droppable = new Droppable(this.containerTargets, { | |
| draggable: ".draggable", | |
| dropzone: ".dropzone" |
- Create a file
Image.jsfrom the source below (it is almost a copy of Image.js from tiptap-extensions except that it has a constructor that acceptsuploadFunc(function to be called withimagebeing uploaded) and additional logicif(upload) { ... } else { ... previous base64 logic .. }in thenew Pluginsection.
import {Node, Plugin} from 'tiptap'
import {nodeInputRule} from 'tiptap-commands'
/**
* Matches following attributes in Markdown-typed image: [, alt, src, title]
*If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
First, check out Discourse and patch it for Heroku. To get the first push to build we need to run migrations before asset precompilation. To get the web dyno to start, we need to configure Puma to stay in the foreground.
## Check out Discourse
$ git clone https://github.com/discourse/discourse.git
$ cd discourse
## Patch Discourse for Heroku
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
| version: 2 | |
| jobs: | |
| build: | |
| environment: | |
| working_directory: ~/circleci-myapp | |
| docker: | |
| - image: circleci/ruby:2.4.2-node-browsers | |
| environment: | |
| CC_TEST_REPORTER_ID: XXXYYY | |
| RAILS_ENV: test |
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
| # load into test setup after `require 'capybara/rails'` | |
| # some sources for below flags and profile settings | |
| # https://stackoverflow.com/questions/43143014/chrome-is-being-controlled-by-automated-test-software/43145088 | |
| # https://sqa.stackexchange.com/questions/26051/chrome-driver-2-28-chrome-is-being-controlled-by-automated-test-software-notif | |
| # http://stackoverflow.com/questions/12211781/how-to-maximize-window-in-chrome-using-webdriver-python | |
| # update sources for new Options object | |
| # https://github.com/SeleniumHQ/selenium/wiki/Ruby-Bindings | |
| # https://github.com/teamcapybara/capybara/blob/master/lib/capybara/selenium/driver.rb | |
| begin |
NewerOlder
