Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .rspack/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const splitChunks = {
'user-menu',
'help',
'themes/dark',
'themes/cyan-sinko',
'themes/light',
'columns/name-size',
'columns/name-size-date',
Expand Down Expand Up @@ -141,6 +142,7 @@ export default {
},
entry: {
'themes/dark': `${dirThemes}/dark.css`,
'themes/cyan-sinko': `${dirThemes}/cyan-sinko.css`,
'themes/light': `${dirThemes}/light.css`,
'columns/name-size': `${dirColumns}/name-size.css`,
'columns/name-size-date': `${dirColumns}/name-size-date.css`,
Expand Down
4 changes: 2 additions & 2 deletions HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Cloud Commander supports the following command-line parameters:
| `--terminal-auto-restart` | restart command on exit
| `--vim` | enable vim hot keys
| `--columns` | set visible columns
| `--theme` | set theme 'light' or 'dark'"
| `--theme` | set theme 'light', 'dark', or 'cyan-sinko'"
| `--export` | enable export of config through a server
| `--export-token` | authorization token used by export server
| `--import` | enable import of config
Expand Down Expand Up @@ -445,7 +445,7 @@ Some config options can be overridden with environment variables, such as:
- `CLOUDCMD_OPEN` - open web browser when server started
- `CLOUDCMD_EDITOR` - set editor
- `CLOUDCMD_COLUMNS` - set visible themes
- `CLOUDCMD_THEME` - set themes "light" or "dark"
- `CLOUDCMD_THEME` - set themes "light", "dark", or "cyan-sinko"
- `CLOUDCMD_MENU` - set menu "supermenu" or "aleman"
- `CLOUDCMD_CONTACT` - enable contact
- `CLOUDCMD_CONFIG_DIALOG` - enable config dialog
Expand Down
93 changes: 93 additions & 0 deletions css/themes/cyan-sinko-font-OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2020 The Plus Jakarta Sans Project Authors (https://github.com/tokotype/PlusJakartaSans)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
15 changes: 15 additions & 0 deletions css/themes/cyan-sinko-icons-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1,374 changes: 1,374 additions & 0 deletions css/themes/cyan-sinko.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion json/help.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"--terminal-auto-restart ": "restart command on exit",
"--vim ": "enable vim hot keys",
"--columns ": "set visible columns",
"--theme ": "set theme 'light' or 'dark'",
"--theme ": "set theme 'light', 'dark', or 'cyan-sinko'",
"--export ": "enable export of config through a server",
"--export-token ": "authorization token used by export server",
"--import ": "enable import of config",
Expand Down
2 changes: 1 addition & 1 deletion man/cloudcmd.1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ programs in browser from any computer, mobile or tablet device.
--terminal-auto-restart restart command on exit
--vim enable vim hot keys
--columns set visible columns
--theme set theme 'light' or 'dark'
--theme set theme 'light', 'dark', or 'cyan-sinko'
--export enable export of config through a server
--export-token authorization token used by export server
--import enable import of config
Expand Down
13 changes: 13 additions & 0 deletions server/themes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {getThemes, isDev} from './theme.js';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const removeQuotes = (a) => a.replace(/['"]/g, '');

test('themes: dev', (t) => {
const themes = getThemes({
Expand All @@ -19,6 +20,18 @@ test('themes: dev', (t) => {
t.end();
});

test('themes: dev: cyan-sinko', (t) => {
const themes = getThemes({
isDev: true,
});

const css = fs.readFileSync(`${__dirname}/../css/themes/cyan-sinko.css`, 'utf8');
const result = removeQuotes(themes['cyan-sinko']).includes(removeQuotes(css));

t.ok(result);
t.end();
});

test('themes: no args', (t) => {
const currentIsDev = isDev();
isDev(true);
Expand Down
1 change: 1 addition & 0 deletions tmpl/config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<select data-name="js-theme" class="form-control full-width" title="Theme">
<option {{ light-selected }}>light</option>
<option {{ dark-selected }}>dark</option>
<option value="cyan-sinko" {{ cyan-sinko-selected }}>Cyan-Sinko</option>
</select>
</li>
<li title="Visible Columns">
Expand Down
Loading