mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Move "clapper_src" dir to "src"
The "clapper_src" directory name was unusual. This was done to make it work as a widget for other apps. Now that this functionality got removed it can be named simply "src" as recommended by guidelines.
This commit is contained in:
@@ -14,4 +14,4 @@ Package.init({
|
|||||||
libdir: '@libdir@',
|
libdir: '@libdir@',
|
||||||
datadir: '@datadir@',
|
datadir: '@datadir@',
|
||||||
});
|
});
|
||||||
Package.run(imports.clapper_src.main@ID_POSTFIX@);
|
Package.run(imports.src.main@ID_POSTFIX@);
|
||||||
|
@@ -9,4 +9,4 @@ Package.init({
|
|||||||
libdir: '@libdir@',
|
libdir: '@libdir@',
|
||||||
datadir: '@datadir@',
|
datadir: '@datadir@',
|
||||||
});
|
});
|
||||||
Package.run(imports.clapper_src.main);
|
Package.run(imports.src.main);
|
||||||
|
@@ -1,6 +0,0 @@
|
|||||||
const { Daemon } = imports.clapper_src.daemon;
|
|
||||||
|
|
||||||
function main()
|
|
||||||
{
|
|
||||||
new Daemon();
|
|
||||||
}
|
|
@@ -19,7 +19,7 @@ subdir('bin')
|
|||||||
subdir('data')
|
subdir('data')
|
||||||
|
|
||||||
installdir = join_paths(get_option('prefix'), 'share', meson.project_name())
|
installdir = join_paths(get_option('prefix'), 'share', meson.project_name())
|
||||||
install_subdir('clapper_src', install_dir : installdir)
|
install_subdir('src', install_dir : installdir)
|
||||||
install_subdir('extras', install_dir : installdir)
|
install_subdir('extras', install_dir : installdir)
|
||||||
install_subdir('css', install_dir : installdir)
|
install_subdir('css', install_dir : installdir)
|
||||||
install_subdir('ui', install_dir : installdir)
|
install_subdir('ui', install_dir : installdir)
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
const { Gio, GObject } = imports.gi;
|
const { Gio, GObject } = imports.gi;
|
||||||
const { AppBase } = imports.clapper_src.appBase;
|
const { AppBase } = imports.src.appBase;
|
||||||
const { HeaderBar } = imports.clapper_src.headerbar;
|
const { HeaderBar } = imports.src.headerbar;
|
||||||
const { Widget } = imports.clapper_src.widget;
|
const { Widget } = imports.src.widget;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,7 +1,7 @@
|
|||||||
const { Gio, GLib, GObject, Gtk } = imports.gi;
|
const { Gio, GLib, GObject, Gtk } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Menu = imports.clapper_src.menu;
|
const Menu = imports.src.menu;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
@@ -1,7 +1,7 @@
|
|||||||
const { GObject } = imports.gi;
|
const { GObject } = imports.gi;
|
||||||
const { AppBase } = imports.clapper_src.appBase;
|
const { AppBase } = imports.src.appBase;
|
||||||
const { HeaderBarBase } = imports.clapper_src.headerbarBase;
|
const { HeaderBarBase } = imports.src.headerbarBase;
|
||||||
const { WidgetRemote } = imports.clapper_src.widgetRemote;
|
const { WidgetRemote } = imports.src.widgetRemote;
|
||||||
|
|
||||||
var AppRemote = GObject.registerClass(
|
var AppRemote = GObject.registerClass(
|
||||||
class ClapperAppRemote extends AppBase
|
class ClapperAppRemote extends AppBase
|
8
clapper_src/controls.js → src/controls.js
vendored
8
clapper_src/controls.js → src/controls.js
vendored
@@ -1,8 +1,8 @@
|
|||||||
const { GLib, GObject, Gdk, Gtk } = imports.gi;
|
const { GLib, GObject, Gdk, Gtk } = imports.gi;
|
||||||
const Buttons = imports.clapper_src.buttons;
|
const Buttons = imports.src.buttons;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const Revealers = imports.clapper_src.revealers;
|
const Revealers = imports.src.revealers;
|
||||||
|
|
||||||
const CONTROLS_MARGIN = 2;
|
const CONTROLS_MARGIN = 2;
|
||||||
const CONTROLS_SPACING = 0;
|
const CONTROLS_SPACING = 0;
|
@@ -1,5 +1,5 @@
|
|||||||
const { Gio, GLib, GObject } = imports.gi;
|
const { Gio, GLib, GObject } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,8 +1,8 @@
|
|||||||
const { Gio, GObject, Gtk, Gst } = imports.gi;
|
const { Gio, GObject, Gtk, Gst } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const Prefs = imports.clapper_src.prefs;
|
const Prefs = imports.src.prefs;
|
||||||
const PrefsBase = imports.clapper_src.prefsBase;
|
const PrefsBase = imports.src.prefsBase;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,5 +1,5 @@
|
|||||||
const { GObject } = imports.gi;
|
const { GObject } = imports.gi;
|
||||||
const { HeaderBarBase } = imports.clapper_src.headerbarBase;
|
const { HeaderBarBase } = imports.src.headerbarBase;
|
||||||
|
|
||||||
var HeaderBar = GObject.registerClass(
|
var HeaderBar = GObject.registerClass(
|
||||||
class ClapperHeaderBar extends HeaderBarBase
|
class ClapperHeaderBar extends HeaderBarBase
|
@@ -1,5 +1,5 @@
|
|||||||
const { GObject, Gtk, Pango } = imports.gi;
|
const { GObject, Gtk, Pango } = imports.gi;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
|
|
||||||
var HeaderBarBase = GObject.registerClass(
|
var HeaderBarBase = GObject.registerClass(
|
||||||
class ClapperHeaderBarBase extends Gtk.HeaderBar
|
class ClapperHeaderBarBase extends Gtk.HeaderBar
|
@@ -2,7 +2,7 @@ imports.gi.versions.Gdk = '4.0';
|
|||||||
imports.gi.versions.Gtk = '4.0';
|
imports.gi.versions.Gtk = '4.0';
|
||||||
|
|
||||||
const { Gst } = imports.gi;
|
const { Gst } = imports.gi;
|
||||||
const { App } = imports.clapper_src.app;
|
const { App } = imports.src.app;
|
||||||
|
|
||||||
Gst.init(null);
|
Gst.init(null);
|
||||||
|
|
6
src/mainDaemon.js
Normal file
6
src/mainDaemon.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
const { Daemon } = imports.src.daemon;
|
||||||
|
|
||||||
|
function main()
|
||||||
|
{
|
||||||
|
new Daemon();
|
||||||
|
}
|
@@ -1,8 +1,8 @@
|
|||||||
imports.gi.versions.Gdk = '4.0';
|
imports.gi.versions.Gdk = '4.0';
|
||||||
imports.gi.versions.Gtk = '4.0';
|
imports.gi.versions.Gtk = '4.0';
|
||||||
|
|
||||||
const { AppRemote } = imports.clapper_src.appRemote;
|
const { AppRemote } = imports.src.appRemote;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
|
|
||||||
const ID_POSTFIX = 'Remote';
|
const ID_POSTFIX = 'Remote';
|
||||||
|
|
@@ -1,5 +1,5 @@
|
|||||||
const { GObject, Gst, Gtk } = imports.gi;
|
const { GObject, Gst, Gtk } = imports.gi;
|
||||||
const Dialogs = imports.clapper_src.dialogs;
|
const Dialogs = imports.src.dialogs;
|
||||||
|
|
||||||
var actions = {
|
var actions = {
|
||||||
openLocal: (window) => new Dialogs.FileChooser(window),
|
openLocal: (window) => new Dialogs.FileChooser(window),
|
@@ -1,5 +1,5 @@
|
|||||||
const { Gio, GstAudio, GstPlayer, Gdk, Gtk } = imports.gi;
|
const { Gio, GstAudio, GstPlayer, Gdk, Gtk } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,8 +1,8 @@
|
|||||||
const { Gdk, Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi;
|
const { Gdk, Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi;
|
||||||
const ByteArray = imports.byteArray;
|
const ByteArray = imports.byteArray;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const { PlayerBase } = imports.clapper_src.playerBase;
|
const { PlayerBase } = imports.src.playerBase;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
@@ -1,8 +1,8 @@
|
|||||||
const { Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi;
|
const { Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const { PlaylistWidget } = imports.clapper_src.playlist;
|
const { PlaylistWidget } = imports.src.playlist;
|
||||||
const { WebApp } = imports.clapper_src.webApp;
|
const { WebApp } = imports.src.webApp;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
||||||
@@ -275,7 +275,7 @@ class ClapperPlayerBase extends GstPlayer.Player
|
|||||||
if(!WebServer) {
|
if(!WebServer) {
|
||||||
/* Probably most users will not use this,
|
/* Probably most users will not use this,
|
||||||
* so conditional import for faster startup */
|
* so conditional import for faster startup */
|
||||||
WebServer = imports.clapper_src.webServer.WebServer;
|
WebServer = imports.src.webServer.WebServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.webserver) {
|
if(!this.webserver) {
|
@@ -1,5 +1,5 @@
|
|||||||
const { GObject } = imports.gi;
|
const { GObject } = imports.gi;
|
||||||
const { WebClient } = imports.clapper_src.webClient;
|
const { WebClient } = imports.src.webClient;
|
||||||
|
|
||||||
var PlayerRemote = GObject.registerClass(
|
var PlayerRemote = GObject.registerClass(
|
||||||
class ClapperPlayerRemote extends GObject.Object
|
class ClapperPlayerRemote extends GObject.Object
|
@@ -1,6 +1,6 @@
|
|||||||
const { GObject, Gst, Gtk, Pango } = imports.gi;
|
const { GObject, Gst, Gtk, Pango } = imports.gi;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const PrefsBase = imports.clapper_src.prefsBase;
|
const PrefsBase = imports.src.prefsBase;
|
||||||
|
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
||||||
|
|
@@ -1,6 +1,6 @@
|
|||||||
const { Gio, GObject, Gtk } = imports.gi;
|
const { Gio, GObject, Gtk } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
@@ -1,5 +1,5 @@
|
|||||||
const { GLib, GObject, Gtk, Pango } = imports.gi;
|
const { GLib, GObject, Gtk, Pango } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
|
|
||||||
const REVEAL_TIME = 800;
|
const REVEAL_TIME = 800;
|
||||||
|
|
@@ -1,6 +1,6 @@
|
|||||||
const { Gio, GObject } = imports.gi;
|
const { Gio, GObject } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,7 +1,7 @@
|
|||||||
const { Gio, GObject, Soup } = imports.gi;
|
const { Gio, GObject, Soup } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const WebHelpers = imports.clapper_src.webHelpers;
|
const WebHelpers = imports.src.webHelpers;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
@@ -1,6 +1,6 @@
|
|||||||
const { Soup } = imports.gi;
|
const { Soup } = imports.gi;
|
||||||
const ByteArray = imports.byteArray;
|
const ByteArray = imports.byteArray;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,6 +1,6 @@
|
|||||||
const { Soup, GObject } = imports.gi;
|
const { Soup, GObject } = imports.gi;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const WebHelpers = imports.clapper_src.webHelpers;
|
const WebHelpers = imports.src.webHelpers;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
|
|
@@ -1,9 +1,9 @@
|
|||||||
const { Gdk, GLib, GObject, GstPlayer, Gtk } = imports.gi;
|
const { Gdk, GLib, GObject, GstPlayer, Gtk } = imports.gi;
|
||||||
const { Controls } = imports.clapper_src.controls;
|
const { Controls } = imports.src.controls;
|
||||||
const Debug = imports.clapper_src.debug;
|
const Debug = imports.src.debug;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const { Player } = imports.clapper_src.player;
|
const { Player } = imports.src.player;
|
||||||
const Revealers = imports.clapper_src.revealers;
|
const Revealers = imports.src.revealers;
|
||||||
|
|
||||||
const { debug } = Debug;
|
const { debug } = Debug;
|
||||||
const { settings } = Misc;
|
const { settings } = Misc;
|
@@ -1,7 +1,7 @@
|
|||||||
const { GObject, Gtk, GstPlayer } = imports.gi;
|
const { GObject, Gtk, GstPlayer } = imports.gi;
|
||||||
const Buttons = imports.clapper_src.buttons;
|
const Buttons = imports.src.buttons;
|
||||||
const Misc = imports.clapper_src.misc;
|
const Misc = imports.src.misc;
|
||||||
const { PlayerRemote } = imports.clapper_src.playerRemote;
|
const { PlayerRemote } = imports.src.playerRemote;
|
||||||
|
|
||||||
var WidgetRemote = GObject.registerClass(
|
var WidgetRemote = GObject.registerClass(
|
||||||
class ClapperWidgetRemote extends Gtk.Grid
|
class ClapperWidgetRemote extends Gtk.Grid
|
Reference in New Issue
Block a user