Skip to content

Instantly share code, notes, and snippets.

View andersevenrud's full-sized avatar
🤘
w^w^^w^w

Anders Evenrud andersevenrud

🤘
w^w^^w^w
View GitHub Profile
/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2019, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
@andersevenrud
andersevenrud / index.js
Last active April 21, 2022 21:49
OS.js v3 - Basic Iframe Example
import './index.scss';
import osjs from 'osjs';
import {name as applicationName} from './metadata.json';
// Our launcher
const register = (core, args, options, metadata) => {
// Create a new Application instance
const proc = core.make('osjs/application', {args, options, metadata});
// Create a new Window instance
@andersevenrud
andersevenrud / TODO.md
Last active January 5, 2019 23:37
OS.js v3 TODO list

OS.js v3 has been released

This is the "general" list of tasks for OS.js v3 development. I'm just adding things here as I go or things pop into mind. So if you see anything interesting and you want to pitch in, that'd be much appreciated.

See the following repositories for issues/todos that are not included here:

import React from 'react';
import ReactDOM from 'react-dom';
//
// Your component(s).
//
class MainWindowComponent extends React.Component {
constructor(props) {
super(props);
@andersevenrud
andersevenrud / index.js
Created June 20, 2018 16:57
OS.js v3 w/React and bi-directional events via bus
import React from 'react';
import ReactDOM from 'react-dom';
//
// Your component(s).
//
class MainWindowComponent extends React.Component {
constructor(props) {
super(props);
@andersevenrud
andersevenrud / README.md
Last active March 3, 2018 16:24
OS.js v3 Application Template

OS.js v3 Application Template

This is a WIP bare-bones template for OS.js v3 apps.

Place it in src/packages/MyApplication and the build system will automatically recognice your package.

Then in console OSjs.run('MyApplication')

NOW AVAILABLE AS A PACKAGE: https://github.com/os-js/osjs-example-package

@andersevenrud
andersevenrud / cnc-rules.ini
Created November 25, 2017 19:56 — forked from Mailaender/cnc-rules.ini
Tiberian Dawn RULES.INI extracted from the binaries by @Nyerguds
; Command & Conquer RULES.INI
; If placed in game directory, it will not override built in values. Values to be used as
; multipliers or percentages can be specified as either a simple floating point number (embed ".")
; or as a conventional percentage number (append "%"). Values used as cell distances or time delays
; are specified as simple floating point number. Distance values are expressed in cells. Time
; values are expressed in minutes.
; This is not the real file because there is none - the C&C rules were hard-coded into the game.dat
; file (C&C95.exe in Win95 Edition). This is what the file could have been like, based on what
; editors/testing tells us, as well as what the values were in Red Alert, which is VERY similar to
@andersevenrud
andersevenrud / osjs-2.0-bc.js
Last active August 6, 2017 18:33
osjs-2.0-bc.js
/* eslint new-cap:"off" */
/* eslint dot-notation:"off" */
let layer;
//
// This is the backward compability layer for OS.js v2.0.x
//
// I THINK THIS MIGHT BE A BIT BROKEN ATM. PLEASE NOTE THAT THIS IS NOT MEANT
// FOR USAGE, IT'S JUST A TOOL TO HELP MIGRATION.
//
@andersevenrud
andersevenrud / osjs-launcher-prototype.js
Last active August 1, 2017 22:30
This is just a prototype thingy...
/*!
This is a PROTOTYPE for creating a OS.js System Service.
Right now it allows you to to execute arbitrary commands.
TODO:
- Authentication and user resolving
- Work like an API instead of pure commands
@andersevenrud
andersevenrud / osjs-database-backend.md
Last active May 10, 2017 21:35
OS.js Set up Database as user backend

This is just a copy/paste from the manual on how to set up Database as your user backend.

NOTE that this is not the only choice, but the simplest

Instead of doing all of the node osjs config:set you can make your own file in src/conf/ (ex src/conf/901-my-config.json), but this is optional.

After setup and rebuild, estart your client and server and you should be able to log in :)