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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"title": "app-template",
"title": "app_template",
"version": "0.0.1",
"description": "An example summary",
"license": {
@ -47,7 +47,7 @@
}
},
"paths": {
"/ocs/v2.php/apps/app-template/api": {
"/ocs/v2.php/apps/app_template/api": {
"get": {
"operationId": "api-index",
"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",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "app-template",
"name": "app_template",
"version": "1.0.0",
"license": "AGPL-3.0-or-later",
"dependencies": {

View File

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

View File

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

View File

@ -3,4 +3,4 @@ import App from './App.vue'
Vue.mixin({ methods: { t, n } })
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>