Skip to content

Instantly share code, notes, and snippets.

@msjavan
msjavan / gist:0dfd9aec06dc1998cc5518a512448c52
Created July 2, 2020 16:41
regarding to vfs adapter error
###############################################################
> server/index.js
const {
Core,
CoreServiceProvider,
PackageServiceProvider,
VFSServiceProvider,
AuthServiceProvider,
SettingsServiceProvider
import {Widget} from '../osjs-widgets';
//import {Widget} from '@osjs/widgets';
import {h, app} from 'hyperapp';
import {TextField} from '@osjs/gui';
import flag from './chart1.jpeg';
//import flag from './chart2.png';
//import flag from './chart3.jpeg';
const img = new Image();
img.src = flag;
@msjavan
msjavan / FileManager_index.js
Created January 29, 2020 07:39
It seems that locale function not working in this location:
const state = (bus, core, proc, win) => ({
path: '',
status: '',
history: [],
historyIndex: -1,
minimalistic: false,
mountview: listView.state({
class: 'osjs-gui-fill',
columns: ['Name'],
@msjavan
msjavan / config.js
Created January 28, 2020 04:33
src/client/config.js
export default
{
auth: {
ui: {
title: 'Please login to Dashboard'
}
},
languages: {
fa_FA: 'Persian',
}
@msjavan
msjavan / index.js
Created January 27, 2020 11:28
MyWidget
import {Widget} from '@osjs/widgets';
export default class MyWidget extends Widget {
constructor(core, options) {
super(core, options, {
// This widget uses a canvas
canvas: true,
fps: 1,
Verifying my Blockstack ID is secured with the address 1DqPSSpRhprKCuCn3vzaQcS4RM2TBUD4Wz https://explorer.blockstack.org/address/1DqPSSpRhprKCuCn3vzaQcS4RM2TBUD4Wz