fix: Change app id to app_template

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2024-04-25 10:18:42 +02:00
parent d4d3f7b205
commit 99b105f5a7
No known key found for this signature in database
9 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd"> xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>app-template</id> <id>app_template</id>
<name>App Template</name> <name>App Template</name>
<summary>An example summary</summary> <summary>An example summary</summary>
<description>An example description</description> <description>An example description</description>
@ -16,9 +16,9 @@
</dependencies> </dependencies>
<navigations> <navigations>
<navigation> <navigation>
<id>app-template</id> <id>app_template</id>
<name>App Template</name> <name>App Template</name>
<route>app-template.page.index</route> <route>app_template.page.index</route>
<icon>app.svg</icon> <icon>app.svg</icon>
<type>link</type> <type>link</type>
</navigation> </navigation>

View File

@ -1,5 +1,5 @@
{ {
"name": "nextcloud/app-template", "name": "nextcloud/app_template",
"description": "An example description", "description": "An example description",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"authors": [ "authors": [

View File

@ -10,7 +10,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext; use OCP\AppFramework\Bootstrap\IRegistrationContext;
class Application extends App implements IBootstrap { class Application extends App implements IBootstrap {
public const APP_ID = 'app-template'; public const APP_ID = 'app_template';
/** @psalm-suppress PossiblyUnusedMethod */ /** @psalm-suppress PossiblyUnusedMethod */
public function __construct() { public function __construct() {

View File

@ -1,7 +1,7 @@
{ {
"openapi": "3.0.3", "openapi": "3.0.3",
"info": { "info": {
"title": "app-template", "title": "app_template",
"version": "0.0.1", "version": "0.0.1",
"description": "An example summary", "description": "An example summary",
"license": { "license": {
@ -47,7 +47,7 @@
} }
}, },
"paths": { "paths": {
"/ocs/v2.php/apps/app-template/api": { "/ocs/v2.php/apps/app_template/api": {
"get": { "get": {
"operationId": "api-index", "operationId": "api-index",
"summary": "An example API endpoint", "summary": "An example API endpoint",

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "app-template", "name": "app_template",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "app-template", "name": "app_template",
"version": "1.0.0", "version": "1.0.0",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"dependencies": { "dependencies": {

View File

@ -1,5 +1,5 @@
{ {
"name": "app-template", "name": "app_template",
"version": "1.0.0", "version": "1.0.0",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"engines": { "engines": {

View File

@ -1,6 +1,6 @@
<template> <template>
<NcAppContent> <NcAppContent>
<div id="app-template"> <div id="app_template">
<h1>Hello world!</h1> <h1>Hello world!</h1>
</div> </div>
</NcAppContent> </NcAppContent>
@ -18,7 +18,7 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
#app-template { #app_template {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 16px; margin: 16px;

View File

@ -3,4 +3,4 @@ import App from './App.vue'
Vue.mixin({ methods: { t, n } }) Vue.mixin({ methods: { t, n } })
const View = Vue.extend(App) const View = Vue.extend(App)
new View().$mount('#app-template') new View().$mount('#app_template')

View File

@ -8,4 +8,4 @@ Util::addScript(OCA\AppTemplate\AppInfo\Application::APP_ID, 'main');
?> ?>
<div id="app-template"></div> <div id="app_template"></div>