Giter VIP home page Giter VIP logo

uurage / scenarioeditor Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 1.0 12.57 MB

Allows designers to create and edit dialogue scenarios using a web browser.

Home Page: https://uurage.dialoguetrainer.dev/ScenarioEditor-demo

License: Apache License 2.0

PHP 80.38% HTML 0.01% JavaScript 17.38% TypeScript 0.05% SCSS 1.40% CSS 0.63% Hack 0.01% Smarty 0.14%
scenario-editor web-application scenario scenario-creator graphical-editor graph-based

scenarioeditor's Introduction

Scenario Editor

The UURAGE Scenario Editor is a web application component for editing communication scenarios.

Prerequisites

A server stack that includes PHP >= 7.4.

For online use, any small web hosting package should do; Linux environments are more common and better supported than Windows servers. For offline, local use on Windows, XAMPP is a reasonable option.

Installation

Place all files in a directory and set the public subdirectory as the web root (DocumentRoot in Apache). If you cannot change the web root, but you have write access to the directory that contains the web root, you can place all files there and move the contents of public into the web root.

Configuration

Create a configuration XML file based on the config language with the namespace http://uurage.github.io/ScenarioEditor/config/namespace and put it in the public/editor directory with the filename config.xml. A tutorial is also available.

Development

NPM package

The purpose of the NPM package is to manage development dependencies. We use technologies that involve building (transforming) files (see below). The NPM package allows you to build everything at once and to build files that have changed since the last build every time you save a file.

Setup

Install Node.js and execute the following commands to install the development dependencies:

npm install -g gulp-cli
npm install

Command-line usage

To build, run gulp build. To build and watch for file changes, run gulp.

Visual Studio Code

The Scenario Editor has a Visual Studio Code task for executing gulp. After installing the dependencies, this task can be executed with Ctrl+Shift+B in the code editing window.

Sass

The Scenario Editor uses a collection of Sass files for its styling. There are several ways to compile Sass to CSS.

Using Node.js

See "NPM package" above. Run gulp sass to compile once.

Using Sass Compiler

When compiling using the standard Sass compiler, you need to watch the folder public/editor/sass to compile to public/editor/css.

Live-reload

You can live-reload the changes to your stylesheets in your browser by running gulp stream, which uses Browsersync and uses localhost as the proxy hostname.

scenarioeditor's People

Contributors

ignazkevenaar avatar jan709 avatar jordyvandortmont avatar lalar73 avatar madreal avatar mvangeest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ssouidi

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.