Git Product home page Git Product logo

holy-ui's Issues

Tenants

GET : /api/protected/tenants

[
{
"id": 1,
"tenant_id": 0,
"tenant_name": "Test",
"updated_at": "2024-05-14T20:19:03.000000Z",
"updated_by": "Tesfu"
},
{
"id": 2,
"tenant_id": 0,
"tenant_name": "Test2",
"updated_at": "2024-05-14T20:19:03.000000Z",
"updated_by": "Belay"
}
]

POST : /api/protected/tenants

{
"tenant_name": "Test2"
}

PUT : /api/protected/tenants
{
"tenant_name": "Fetene",
"id":4
}

Screenshot 2024-05-14 at 3 32 43 PM

Languages UI

Add content viewer/Editor for Tenants page
here is a test API
GET : /api/protected/languages
[
{
"id": 1,
"lang_id": "english",
"lang_name": "English",
"tenant_id": 0,
"updated_at": null
},
{
"id": 2,
"lang_id": "tigrigna",
"lang_name": "ትግርኛ",
"tenant_id": 0,
"updated_at": null
},
{
"id": 3,
"lang_id": "spanish",
"lang_name": "Spanila",
"tenant_id": 0,
"updated_at": "2024-05-11T17:13:33.000000Z"
}
]

POST : http://localhost:8000/api/protected/languages
{
"lang_id": "spanish",
"lang_name": "Spanola"
}

PUT : /api/protected/languages
{
"id": 3,
"lang_id": "spanish",
"lang_name": "Spanila"
}

NO delete

Screenshot 2024-05-11 at 12 47 41 PM

User Profile

  1. add a new page under /secure/user_profile
  2. use the same template structure as /secure/content_manager
  3. have only two tabs - Access Config & Access Report
  4. this user story is focused on Access Config
  5. inside the Access Config tab, add one table and "add/edit" form
  6. plz use similar pattern of table and form like PR "page config table" for consistency
  7. see attached for layout and api details

user_profile_api.txt

Screenshot 2024-04-27 at 4 33 38 PM

Dictionary

dictionary List
GET : /api/protected/dictionaries
[
{
"id": 1,
"Key": "test",
"English": "Test",
"ትግርኛ": "Not Set",
"Spanila": "Not Set"
}
]

GET (for edit) : /api/protected/dictionary?key=test
{
"Key": "test",
"English": "Test",
"ትግርኛ": "Not Set",
"Spanila": "Not Set"
}

POST : /api/protected/dictionary

Req-Body : {
"Key": "sugar",
"English": "Sugar",
"ትግርኛ": "ሽኮ"
}

PUT : /api/protected/dictionary
Req-Body : {
"id": 1,
"Key": "test",
"English": "Test",
"ትግርኛ": "Not Set"
}

Screenshot 2024-05-11 at 1 53 43 PM

Adding a file mapper

** Create a file_mapper table with the following columns:

  • id
  • ref_id (No Foreign Key)
  • file_id (Foreign Key to files table ‘id’)
    * ref_type (to distinguish between ref type)
    * updated_at
    • updated_by (Foreign Key to users table)

** Remove image_link and header_img columns from the page_config table.

** Update the PageConfig and FileMapper models to reflect these changes.

** Modify the PageConfigController to handle the new structure and return the appropriate JSON response.

sample json POST would then be
{
"page_type": "public",
"name": "Home2",
"description": "test3",
"parent": 0,
"header_img": [23,94],
"language": "english",
"header_text": "test3",
"page_url": "/home",
"seq_no":0
}

so you push to file mapper db as

you need to loop and push for each id in the array

id = gen id <22323>
ref_id =
ref_type=“page_config”
file_id = id from the array

Content Manager

GET : http://localhost:8000/api/contents?content_category=home&lang=english&start=0&limit=9

[ {
"id": 1,
"lang": "english",
"type": "image",
"title": "Pics Test",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"content_text": "test",
"background_image": "http://localhost:8000/storage/uploaded/6ca5790f-571f-4b90-b15a-f409f1332ab1_1.jpg",
"content_category": "Home",
"release_date_time": 1713252420000,
"m_link": "6ca5790f-571f-4b90-b15a-f409f1332ab1_3.jpg",
"file_type": "image",
"media_link": [
"http://localhost:8000/storage/uploaded/6ca5790f-571f-4b90-b15a-f409f1332ab1_2.jpg",
"http://localhost:8000/storage/uploaded/6ca5790f-571f-4b90-b15a-f409f1332ab1_3.jpg"
]
}
]

POST : http://localhost:8000/api/secured/contents

{
	"id": 1,
	"lang": "english",
	"type": "image",
	"title": "Pics Test",
	"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
	"content_text": "test",
	"background_image": 7
	"content_category": "Home",
	"file_type": "image",
	"media_link": [
		6,8
	]
}
Screenshot 2024-06-15 at 8 33 30 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.