- Ruby (2.0 and newer)
gem install voog_api
gem install mime-types
gem install nokogiri
- Make sure you have enough free space to temporarily hold all the necessary image assets before re-uploading them to Voog
If site is running on Voog, proceed with the following tasks.
This is the content from the original Phaser cheatsheet, the site of which went down. I'm editing outdated information as I come across it.
Reference: http://docs.phaser.io/Phaser.Game.html#Game
var game = new Phaser.Game(width, height, renderer, "parent");
//All parameters are optional but you usually want to set width and height
//Remember that the game object inherits many properties and methods!
#!/usr/bin/env ruby | |
# Script to copy Voog (www.voog.com) page content areas and/or elements between pages. | |
# It uses functions from Voog migrator script https://gist.github.com/tanelj/a64d58185551976874d5, that should be in same folder. | |
require_relative 'voog_migrator' | |
def copy_articles!(mappings) | |
mappings.each do |k, v| | |
source_page = @migrator.source.page_by_path(k) | |
target_page = @migrator.target.page_by_path(v) |
// Article body | |
$.ajax({ | |
type: "PUT", | |
contentType: "application/json", | |
url: '/admin/api/articles/566710', | |
data: JSON.stringify({ body: '' }), | |
dataType: "json" | |
}); | |
// Content text |
#!/usr/bin/env ruby | |
# voog_migrator.rb | |
# | |
# Small script to migrate content between websites that are build with Voog CMS. | |
# This tool is using Ruby client of the Voog API: https://github.com/Voog/voog.rb. | |
# | |
# Read more about Voog API http://www.voog.com/developers/api. | |
# This tools allows to analyze source and target host (default action when running this script without any parameters) |
// toggle between two list values | |
var i = 1, | |
toggleList = ['one', 'two']; | |
console.log(toggleList[i ^= 1]); // one | |
console.log(toggleList[i ^= 1]); // two | |
console.log(toggleList[i ^= 1]); // one | |
// toggle through longer array | |
// limitation: list values should not be falsy ("", null, 0) |