Code Monkey home page Code Monkey logo

xd_discourse_evolver's Introduction

Rename XD Dev forums into CC Dev forums

Gotchas

Force SSL

When restoring a production db, if running locally, all login sessions will fail. This is because in production SiteSetting.force_https is true

To fix:

bin/rails c
SiteSetting.force_https = false

The program:

require 'discourse_api' client = DiscourseApi::Client.new("http://localhost:3000") client.api_key = "dadd24fdb7cf37d74f4ecd82b8b8642d5a4063708b137bc3a0f3b9baa0147e58" client.api_username = 'simon'

fonts = client.create_category({ name: 'Adobe Fonts', color: 'ccc', text_color: 'fff' } )

stock = client.create_category({ name: 'Adobe Stock', color: '000', text_color: 'fff' })

xd = client.create_category({ name: 'Adobe XD', color: 'ED207B', text_color: 'fff' })

cc_libraries = client.create_category({ name: 'CC Libraries', color: '652D90', text_color: 'fff' })

indesign = client.create_category({ name: 'InDesign', color: 'BF1E2E', text_color: 'fff' })

lightroom = client.create_category({ name: 'Lightroom', color: '25AAE2', text_color: 'fff' })

photoshop = client.create_category({ name: 'Photoshop', color: '0E76BD', text_color: 'fff })

uncategorized = client.create_category({ name: 'Uncategorized', description: "Topics that don't need a category, or don't fit into any other existing category.", color: '0088CC', text_color: 'fff' })

xd_discourse_evolver's People

Contributors

simonwex avatar

Stargazers

Ash Ryan Arnwine avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.